From: Fredrik Tolf Date: Wed, 21 Apr 2021 18:34:10 +0000 (+0200) Subject: Added + to list of invalid URL characters. X-Git-Url: http://www.dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=f6f55f13012f144bfdf03c23e96523ed66d673f2 Added + to list of invalid URL characters. It is quite unbelievable that I've missed this until now. --- diff --git a/wrw/proto.py b/wrw/proto.py index 4fd26a0..c231176 100644 --- 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