mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 10:14:09 +00:00
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:
parent
60550330ce
commit
1c4d950be6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user