From 06948bad5ed454c76d4630441ad95a37f76fc177 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Tue, 24 Nov 2020 09:42:30 -0500 Subject: Unquote msgid if we're getting a full https URL If we're processing a full https URL to the message, then unquote the message ID before we use it. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index 4959db0..ce06a31 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1922,7 +1922,7 @@ def get_msgid(cmdargs): matches = re.search(r'^https?://[^/]+/([^/]+)/([^/]+@[^/]+)', msgid, re.IGNORECASE) if matches: chunks = matches.groups() - msgid = chunks[1] + msgid = urllib.parse.unquote(chunks[1]) # Infer the project name from the URL, if possible if chunks[0] != 'r': cmdargs.useproject = chunks[0] -- cgit v1.2.3