rev116, Fix websocket error when writing invalid files on not-owned sites, Fix for stucked notification icon after shutdown

This commit is contained in:
HelloZeroNet 2015-04-21 00:35:34 +02:00
parent dc4292e1e3
commit f576527986
4 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,7 @@ Decentralized websites using Bitcoin crypto and the BitTorrent network
* Tor network support
* Automatic, uPnP port opening
* Plugin for multiuser (openproxy) support
* Works with any browser/OS
## How does it work?

View File

@ -653,7 +653,7 @@ class NotificationIcon(object):
print "Icon thread stopped, removing icon..."
#KillTimer(self._hwnd, self._timerid)
Shell_NotifyIcon(NIM_DELETE, ctypes.pointer(iconinfo))
Shell_NotifyIcon(NIM_DELETE, ctypes.cast(ctypes.pointer(iconinfo), ctypes.POINTER(NOTIFYICONDATA)))
ctypes.windll.user32.DestroyWindow(self._hwnd)
ctypes.windll.user32.DestroyIcon(self._hicon)

View File

@ -4,7 +4,7 @@ import ConfigParser
class Config(object):
def __init__(self):
self.version = "0.2.9"
self.rev = 115
self.rev = 116
self.parser = self.createArguments()
argv = sys.argv[:] # Copy command line arguments
argv = self.parseConfig(argv) # Add arguments from config file

View File

@ -111,7 +111,9 @@ class ContentManager:
def getIncludeInfo(self, inner_path):
if not inner_path.endswith("content.json"): # Find the files content.json first
inner_path = self.getFileInfo(inner_path)["content_inner_path"]
file_info = self.getFileInfo(inner_path)
if not file_info: return False # File not found
inner_path = file_info["content_inner_path"]
dirs = inner_path.split("/") # Parent dirs of content.json
inner_path_parts = [dirs.pop()] # Filename relative to content.json
inner_path_parts.insert(0, dirs.pop()) # Dont check in self dir