Better fix for the property sanitation
This commit is contained in:
1 parent
6dcb4941df
commit
bca11618be
1 file changed
+1
-1
+1
-1
@@ -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