From dfb9ccdebe1d92d4b2243d48ef00397b82550e26 Mon Sep 17 00:00:00 2001 From: David Paleino Date: Fri, 17 Feb 2012 14:19:17 +0100 Subject: [PATCH] Start sanitizing from the very first character --- wicd/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wicd/misc.py b/wicd/misc.py index a04cfea..63e3128 100644 --- a/wicd/misc.py +++ b/wicd/misc.py @@ -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