Fix escaping of displayed URLs

This commit is contained in:
sqozz 2018-04-08 15:04:50 +02:00
parent b98c189f7c
commit 07ba6a0f17

View file

@ -26,8 +26,9 @@ def short(shortLink=""):
return escape(url) return escape(url)
else: else:
if noauto: if noauto:
url = escape(url) url = str(escape(url))
return "<a href=" + url + ">" + url + "</a>" html = "<a href=" + url + ">" + url + "</a>"
return html
else: else:
return redirect(url, code=301) # Redirect to long URL saved in the database return redirect(url, code=301) # Redirect to long URL saved in the database
else: else: