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:
c62c64a
)
Added + to list of invalid URL characters.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 21 Apr 2021 18:34:10 +0000
(20:34 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 21 Apr 2021 18:34:10 +0000
(20:34 +0200)
It is quite unbelievable that I've missed this until now.
wrw/proto.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/proto.py
b/wrw/proto.py
index
4fd26a0
..
c231176
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