mirror of
https://github.com/gryf/wicd.git
synced 2026-01-07 22:34:18 +01:00
Better fix for the property sanitation
This commit is contained in:
@@ -433,7 +433,7 @@ def sanitize_config(s):
|
|||||||
|
|
||||||
# s is a dbus.String -- since we don't allow unicode property keys,
|
# s is a dbus.String -- since we don't allow unicode property keys,
|
||||||
# make it simple.
|
# make it simple.
|
||||||
return str(s).translate(None, table)
|
return s.encode('ascii', 'replace').translate(None, table)
|
||||||
|
|
||||||
def sanitize_escaped(s):
|
def sanitize_escaped(s):
|
||||||
""" Sanitize double-escaped unicode strings. """
|
""" Sanitize double-escaped unicode strings. """
|
||||||
|
|||||||
Reference in New Issue
Block a user