Start sanitizing from the very first character
This commit is contained in:
1 parent
f1769e0b86
commit
dfb9ccdebe
1 file changed
+1
-1
+1
-1
@@ -427,7 +427,7 @@ def noneToString(text):
|
||||
|
||||
def sanitize_escaped(s):
|
||||
""" Sanitize double-escaped unicode strings. """
|
||||
lastpos = 0
|
||||
lastpos = -1
|
||||
while True:
|
||||
lastpos = s.find('\\x', lastpos + 1)
|
||||
#print lastpos
|
||||
|
||||
Reference in new issue
Block a user