mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 08:51:06 +03:00
Detect most bad URLs
Also [appid] links that should really be [[appid]]
This commit is contained in:
parent
bd3303c43d
commit
dd70c9441c
1 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,8 @@ class DescriptionFormatter:
|
|||
else:
|
||||
urltxt = url[index2 + 1:]
|
||||
url = url[:index2]
|
||||
if ':' not in url:
|
||||
raise MetaDataException("'%s' doesn't look like an URL" % url)
|
||||
linkified_html += '<a href="' + url + '">' + cgi.escape(urltxt) + '</a>'
|
||||
linkified_plain += urltxt
|
||||
if urltxt != url:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue