From: Fredrik Tolf Date: Fri, 18 Sep 2015 18:14:27 +0000 (+0200) Subject: Properly quote semicolons in URLs. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=e4ccd996d1e123d57d8b03a42d8ca71479458f12;p=wrw.git Properly quote semicolons in URLs. --- diff --git a/wrw/proto.py b/wrw/proto.py index f03fd2b..8174f9e 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