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].
This commit is contained in:
Sandro Jäckel 2024-09-17 15:23:26 +02:00
parent 60550330ce
commit 1c4d950be6
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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,