From 9a54a911a87b366aebea2772dc42d1b8e9d763f9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 14 Nov 2012 11:30:29 +0100 Subject: [PATCH] Patch for an Issue #231 --- lib/core/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/common.py b/lib/core/common.py index 8e79669ea..a6655ee41 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1989,6 +1989,7 @@ def urldecode(value, encoding=None, unsafe="%%&=;%s" % CUSTOM_INJECTION_MARK_CHA char = chr(ord(match.group(1).decode("hex"))) return char if char in charset else match.group(0) result = re.sub("%([0-9a-fA-F]{2})", _, value) + result = result.replace("+", " ") # plus sign has a special meaning in url encoded data (hence the usage of urllib.unquote_plus in convall case) if isinstance(result, str): result = unicode(result, encoding or UNICODE_ENCODING, "replace")