mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
metadata: complain if link url isn't a url
This commit is contained in:
parent
2253399190
commit
97ba94903e
@ -335,6 +335,8 @@ class DescriptionFormatter:
|
||||
if index == -1:
|
||||
raise MetaDataException("Unterminated ]")
|
||||
url = txt[1:index]
|
||||
if ':' not in url:
|
||||
raise MetaDataException("Wrong link")
|
||||
index2 = url.find(' ')
|
||||
if index2 == -1:
|
||||
urltxt = url
|
||||
|
Loading…
Reference in New Issue
Block a user