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:43:44 -0500 |
commit | 06948bad5ed454c76d4630441ad95a37f76fc177 (patch) | |
tree | 47ea7cfc39ac6d86ca632f1eb6f0f90b06892050 | |
parent | 46b9e092457c2921653704a4f824c9674f5967cb (diff) | |
download | b4-06948bad5ed454c76d4630441ad95a37f76fc177.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 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] |