From f6f55f13012f144bfdf03c23e96523ed66d673f2 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 21 Apr 2021 20:34:10 +0200 Subject: [PATCH] Added + to list of invalid URL characters. It is quite unbelievable that I've missed this until now. --- wrw/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0