mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 17:01:06 +03:00
metadata: error on url titles that aren't
This commit is contained in:
parent
2c52f67cb1
commit
e0870f6e76
1 changed files with 2 additions and 0 deletions
|
@ -341,6 +341,8 @@ class DescriptionFormatter:
|
||||||
else:
|
else:
|
||||||
urltxt = url[index2 + 1:]
|
urltxt = url[index2 + 1:]
|
||||||
url = url[:index2]
|
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_html += '<a href="' + url + '">' + cgi.escape(urltxt) + '</a>'
|
||||||
linkified_plain += urltxt
|
linkified_plain += urltxt
|
||||||
if urltxt != url:
|
if urltxt != url:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue