mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Merge branch 'lint_fix' into 'master'
lint: fix update check data https check See merge request fdroid/fdroidserver!473
This commit is contained in:
commit
654b3cb9dc
@ -214,11 +214,12 @@ def check_update_check_data_url(app):
|
||||
if app.UpdateCheckData:
|
||||
urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|')
|
||||
for url in (urlcode, urlver):
|
||||
parsed = urllib.parse.urlparse(url)
|
||||
if not parsed.scheme or not parsed.netloc:
|
||||
yield _('UpdateCheckData not a valid URL: {url}').format(url=url)
|
||||
if parsed.scheme != 'https':
|
||||
yield _('UpdateCheckData must use HTTPS URL: {url}').format(url=url)
|
||||
if url != '.':
|
||||
parsed = urllib.parse.urlparse(url)
|
||||
if not parsed.scheme or not parsed.netloc:
|
||||
yield _('UpdateCheckData not a valid URL: {url}').format(url=url)
|
||||
if parsed.scheme != 'https':
|
||||
yield _('UpdateCheckData must use HTTPS URL: {url}').format(url=url)
|
||||
|
||||
|
||||
def check_ucm_tags(app):
|
||||
|
Loading…
Reference in New Issue
Block a user