Properly quote semicolons in URLs.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 18 Sep 2015 18:14:27 +0000 (20:14 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 18 Sep 2015 18:14:27 +0000 (20:14 +0200)
wrw/proto.py

index f03fd2b..8174f9e 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