by @mwielgoszewski

This commit is contained in:
Kenneth Reitz
2012-05-29 19:54:40 -04:00
parent 1c0abbd74b
commit cb15310d6a
+1 -1
View File
@@ -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:]