mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 17:01:06 +03:00
metadata: complain if link url isn't a url
This commit is contained in:
parent
2253399190
commit
97ba94903e
1 changed files with 2 additions and 0 deletions
|
@ -335,6 +335,8 @@ class DescriptionFormatter:
|
||||||
if index == -1:
|
if index == -1:
|
||||||
raise MetaDataException("Unterminated ]")
|
raise MetaDataException("Unterminated ]")
|
||||||
url = txt[1:index]
|
url = txt[1:index]
|
||||||
|
if ':' not in url:
|
||||||
|
raise MetaDataException("Wrong link")
|
||||||
index2 = url.find(' ')
|
index2 = url.find(' ')
|
||||||
if index2 == -1:
|
if index2 == -1:
|
||||||
urltxt = url
|
urltxt = url
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue