aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-04-12 10:00:49 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-04-12 10:00:49 -0400
commitb79f47e49d6bb5f61dca38cd47455883217d8a3c (patch)
tree9afbf8b1d8683787eaa7653915afe19de14f9c4c
parent51e86f7b020ebcfbccfcef7f1efed4a843cb6d9a (diff)
downloadpeebz-b79f47e49d6bb5f61dca38cd47455883217d8a3c.tar.gz
URL-escape msgid when adding it to lookup URL
We're still stuck with non-url-friendly chars in the msgid, so remember to quote-escape the msgid before adding it to the lookup url. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--peebz/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/peebz/__init__.py b/peebz/__init__.py
index d5c1d0c..bba67c2 100644
--- a/peebz/__init__.py
+++ b/peebz/__init__.py
@@ -86,7 +86,7 @@ def get_template_by_product_component(tptname: str, product: str, component: str
def get_msgid_link(msgid: str) -> str:
config = get_config()
linkmask = config['bugzilla'].get('linkmask', 'https://lore.kernel.org/{msgid}')
- return linkmask.format(msgid=msgid)
+ return linkmask.format(msgid=urllib.parse.quote_plus(msgid))
def bz_rest(path: str, payload: Dict = None, params: Dict = None, method: str = 'GET') -> Dict: