File wicd-sanitize.patch of Package wicd

--- wicd/wicd-daemon.py.orig	2015-02-12 17:55:35.000000000 +0100
+++ wicd/wicd-daemon.py	2015-02-12 17:55:35.000000000 +0100
@@ -1113,7 +1113,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.'
@@ -1323,7 +1323,7 @@
     @dbus.service.method('org.wicd.daemon.wireless')
     def SaveWirelessNetworkProperty(self, nid, 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.'
@@ -1490,7 +1490,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