From: Kenneth Reitz Date: Tue, 29 May 2012 23:54:40 +0000 (-0400) Subject: by @mwielgoszewski X-Git-Tag: v0.13.0~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb15310d6aacd1c1e3b3345b6096d24ea2b79d49;p=services%2Fpython-requests.git by @mwielgoszewski --- diff --git a/requests/utils.py b/requests/utils.py index 1fe853a..8c445e7 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -414,7 +414,7 @@ def unquote_unreserved(uri): parts = uri.split('%') for i in range(1, len(parts)): h = parts[i][0:2] - if len(h) == 2: + if len(h) == 2 and h.isalnum(): c = chr(int(h, 16)) if c in UNRESERVED_SET: parts[i] = c + parts[i][2:]