mirror of
https://github.com/gryf/wicd.git
synced 2026-01-09 07:14:13 +01:00
Start sanitizing from the very first character
This commit is contained in:
@@ -427,7 +427,7 @@ def noneToString(text):
|
|||||||
|
|
||||||
def sanitize_escaped(s):
|
def sanitize_escaped(s):
|
||||||
""" Sanitize double-escaped unicode strings. """
|
""" Sanitize double-escaped unicode strings. """
|
||||||
lastpos = 0
|
lastpos = -1
|
||||||
while True:
|
while True:
|
||||||
lastpos = s.find('\\x', lastpos + 1)
|
lastpos = s.find('\\x', lastpos + 1)
|
||||||
#print lastpos
|
#print lastpos
|
||||||
|
|||||||
Reference in New Issue
Block a user