File wicd-sanitize.patch of Package wicd

--- wicd/wicd-daemon.py.orig	2012-05-03 14:36:33.834367627 +0200
+++ wicd/wicd-daemon.py	2012-05-03 14:35:57.227675023 +0200
@@ -1064,7 +1064,7 @@
     def SetWirelessProperty(self, netid, prop, value):
         """ Sets property to value in network specified. """
         # We don't write script settings here.
-        prop = misc.sanitize_config(prop)
+        prop = misc.sanitize_config(str(prop))
         if prop.endswith('script'):
             print 'Setting script properties through the daemon' \
                   + ' is not permitted.'
@@ -1265,7 +1265,7 @@
     @dbus.service.method('org.wicd.daemon.wireless')
     def SaveWirelessNetworkProperty(self, id, option):
         """ Writes a particular wireless property to disk. """
-        option = misc.sanitize_config(option)
+        option = misc.sanitize_config(str(option))
         if option.endswith("script"):
             print 'You cannot save script information to disk through ' + \
                   'the daemon.'
@@ -1408,7 +1408,7 @@
     def SetWiredProperty(self, prop, value):
         """ Sets the given property to the given value. """
         if self.WiredNetwork:
-            prop = misc.sanitize_config(prop)
+            prop = misc.sanitize_config(str(prop))
             if prop.endswith('script'):
                 print 'Setting script properties through the daemon' \
                       + ' is not permitted.'
openSUSE Build Service is sponsored by