From 07ba6a0f174968c65a159cd885d3f90415babbcd Mon Sep 17 00:00:00 2001 From: sqozz Date: Sun, 8 Apr 2018 15:04:50 +0200 Subject: [PATCH] Fix escaping of displayed URLs --- schort.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schort.py b/schort.py index 84be534..9959773 100755 --- a/schort.py +++ b/schort.py @@ -26,8 +26,9 @@ def short(shortLink=""): return escape(url) else: if noauto: - url = escape(url) - return "" + url + "" + url = str(escape(url)) + html = "" + url + "" + return html else: return redirect(url, code=301) # Redirect to long URL saved in the database else: