971d093f17
Security: Fix remote exploit which could crash Deluge.
61 lines
2.3 KiB
Text
61 lines
2.3 KiB
Text
--- glade/preferences_dialog.glade.orig 2008-01-30 13:03:26.000000000 -0600
|
|
+++ glade/preferences_dialog.glade 2008-01-30 13:04:06.000000000 -0600
|
|
@@ -2673,7 +2673,7 @@
|
|
</child>
|
|
<child>
|
|
<widget class="GtkFrame" id="frame4">
|
|
- <property name="visible">True</property>
|
|
+ <property name="visible">False</property>
|
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
|
<property name="label_xalign">0</property>
|
|
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
|
--- src/interface.py.orig 2008-01-30 13:03:33.000000000 -0600
|
|
+++ src/interface.py 2008-01-30 13:04:38.000000000 -0600
|
|
@@ -1037,8 +1037,6 @@
|
|
# Load plugins after we showed main window (if not started in tray)
|
|
self.load_plugins()
|
|
self.load_tabs_order()
|
|
- if self.config.get("new_releases"):
|
|
- self.new_release_check()
|
|
|
|
try:
|
|
gobject.threads_init()
|
|
@@ -1048,38 +1046,6 @@
|
|
except KeyboardInterrupt:
|
|
self.manager.quit()
|
|
|
|
- def new_release_check(self):
|
|
- import socket
|
|
- import urllib
|
|
- timeout = 5
|
|
- socket.setdefaulttimeout(timeout)
|
|
- try:
|
|
- gtk.gdk.threads_enter()
|
|
- except:
|
|
- pass
|
|
- try:
|
|
- new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
|
- except IOError:
|
|
- print "Network error while trying to check for a newer version of \
|
|
-Deluge"
|
|
- try:
|
|
- gtk.gdk.threads_leave()
|
|
- except:
|
|
- pass
|
|
- return
|
|
-
|
|
- if new_release > common.PROGRAM_VERSION:
|
|
- result = dialogs.show_popup_question(None, _("There is a newer version \
|
|
-of Deluge. Would you like to be taken to our download site?"))
|
|
- if result:
|
|
- common.open_url_in_browser('http://download.deluge-torrent.org/')
|
|
- else:
|
|
- pass
|
|
- try:
|
|
- gtk.gdk.threads_leave()
|
|
- except:
|
|
- pass
|
|
-
|
|
def load_plugins(self):
|
|
enable_plugins = self.config.get('enabled_plugins').split(':')
|
|
for plugin in enable_plugins:
|