Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4f58a
)
Properly quote semicolons in URLs.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 18 Sep 2015 18:14:27 +0000
(20:14 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 18 Sep 2015 18:14:27 +0000
(20:14 +0200)
wrw/proto.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/proto.py
b/wrw/proto.py
index
f03fd2b
..
8174f9e
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 = ""
- invalid = b"&=#?/\"'"
+ invalid = b"
;
&=#?/\"'"
for c in url:
if c in invalid or (c <= 32) or (c >= 128):
ret += "%%%02X" % c