Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8f33b1d
)
Properly quote percent-signs in URLs.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 19 Mar 2017 17:15:03 +0000
(18:15 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 19 Mar 2017 17:15:14 +0000
(18:15 +0100)
wrw/proto.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/proto.py
b/wrw/proto.py
index
8174f9e
..
482a23e
100644
(file)
--- a/
wrw/proto.py
+++ b/
wrw/proto.py
@@
-106,7
+106,7
@@
def urlq(url):
if isinstance(url, str):
url = url.encode("utf-8")
ret = ""
if isinstance(url, str):
url = url.encode("utf-8")
ret = ""
- invalid = b";&=#?/\"'"
+ invalid = b"
%
;&=#?/\"'"
for c in url:
if c in invalid or (c <= 32) or (c >= 128):
ret += "%%%02X" % c
for c in url:
if c in invalid or (c <= 32) or (c >= 128):
ret += "%%%02X" % c