diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-24 09:42:30 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-24 09:42:30 -0500 |
commit | b14e4ac57e5e0876f9e3878a5227fb56b1d03580 (patch) | |
tree | d8b3500972b56ac833d4066dda28ffbe4c5d7849 | |
parent | 2797a19eadfce8c01c3a184991c3a6507f35ab05 (diff) | |
download | b4-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__.py | 2 |
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] |