Fix escaping of displayed URLs
This commit is contained in:
parent
b98c189f7c
commit
07ba6a0f17
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue