From e4ccd996d1e123d57d8b03a42d8ca71479458f12 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 18 Sep 2015 20:14:27 +0200 Subject: [PATCH] Properly quote semicolons in URLs. --- wrw/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0