mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-12 18:20:11 +01:00
metadata: error on url titles that aren't
This commit is contained in:
parent
2c52f67cb1
commit
e0870f6e76
@ -341,6 +341,8 @@ class DescriptionFormatter:
|
||||
else:
|
||||
urltxt = url[index2 + 1:]
|
||||
url = url[:index2]
|
||||
if url == urltxt:
|
||||
raise MetaDataException("Url title is just the URL - use [url]")
|
||||
linkified_html += '<a href="' + url + '">' + cgi.escape(urltxt) + '</a>'
|
||||
linkified_plain += urltxt
|
||||
if urltxt != url:
|
||||
|
Loading…
Reference in New Issue
Block a user