From 1c4d950be62611eef1634f90695f52d576abc1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 17 Sep 2024 15:23:26 +0200 Subject: [PATCH] maubot: fix "Incomplete URL substring sanitization" in plugins update script The string 'github.com' may be at an arbitrary position in the sanitized [domain name]. --- pkgs/tools/networking/maubot/plugins/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/maubot/plugins/update.py b/pkgs/tools/networking/maubot/plugins/update.py index d787f1f25095..e0c7c717e5c4 100755 --- a/pkgs/tools/networking/maubot/plugins/update.py +++ b/pkgs/tools/networking/maubot/plugins/update.py @@ -73,7 +73,7 @@ def process_repo(path: str, official: bool): 'description': desc, 'homepage': origurl, } - if domain.endswith('github.com'): + if domain == 'github.com': owner, repo = query.split('/') ret['github'] = { 'owner': owner,