Added + to list of invalid URL characters.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 21 Apr 2021 18:34:10 +0000 (20:34 +0200)
committerFredrik 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

index 4fd26a0..c231176 100644 (file)
@@ -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