aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-04-13 09:03:38 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-04-13 09:03:38 -0400
commit0a1af4370bda5f1b5efc8e0a0dcc5577911cc65b (patch)
treefe75359c259e85633b4c1e51f30f3d24b8c4eb78
parentb79f47e49d6bb5f61dca38cd47455883217d8a3c (diff)
downloadbugspray-0a1af4370bda5f1b5efc8e0a0dcc5577911cc65b.tar.gz
Don't quote '@' in msgid for URLs
We can leave '@' unquoted in the URLs, which makes msgid links more readable. 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 bba67c2..e3ac371 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=urllib.parse.quote_plus(msgid))
+ return linkmask.format(msgid=urllib.parse.quote_plus(msgid, safe='@'))
def bz_rest(path: str, payload: Dict = None, params: Dict = None, method: str = 'GET') -> Dict: