Fixed an issue in the password manager causing passwords containing a '+' to be recognized wrongly. 5_1_x

Sat, 18 Jun 2011 20:06:38 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 18 Jun 2011 20:06:38 +0200
branch
5_1_x
changeset 1126
375edf05ee47
parent 1125
4ecd7e08246b
child 1129
e97a9a2e445e

Fixed an issue in the password manager causing passwords containing a '+' to be recognized wrongly.

Helpviewer/Passwords/PasswordManager.py file | annotate | diff | comparison | revisions
diff -r 4ecd7e08246b -r 375edf05ee47 Helpviewer/Passwords/PasswordManager.py
--- a/Helpviewer/Passwords/PasswordManager.py	Fri Jun 17 18:41:27 2011 +0200
+++ b/Helpviewer/Passwords/PasswordManager.py	Sat Jun 18 20:06:38 2011 +0200
@@ -436,12 +436,13 @@
         if boundary is not None:
             args = self.__extractMultipartQueryItems(data, boundary)
         else:
-            argsUrl = QUrl.fromEncoded(QByteArray("foo://bar.com/?" + data))
+            argsUrl = QUrl.fromEncoded(
+                QByteArray("foo://bar.com/?" + data.replace(b"+", b"%20")))
             encodedArgs = argsUrl.queryItems()
             args = set()
             for arg in encodedArgs:
                 key = arg[0]
-                value = arg[1].replace("+", " ")
+                value = arg[1]
                 args.add((key, value))
         
         # extract the forms

eric ide

mercurial