aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-24 09:42:30 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-24 09:42:30 -0500
commitb14e4ac57e5e0876f9e3878a5227fb56b1d03580 (patch)
treed8b3500972b56ac833d4066dda28ffbe4c5d7849
parent2797a19eadfce8c01c3a184991c3a6507f35ab05 (diff)
downloadb4-b14e4ac57e5e0876f9e3878a5227fb56b1d03580.tar.gz
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 <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index b8d5b7d..4da197b 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -2086,7 +2086,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]