Unverified Commit 1c4d950b authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

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].
parent 60550330
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,