diff --git a/redirectShortenURL.py b/redirectShortenURL.py index 6d959257540e54911b21d461542f4d2ed69f9be2..15a98e699e5809a1459085762add46ba4d985c94 100644 --- a/redirectShortenURL.py +++ b/redirectShortenURL.py @@ -26,6 +26,6 @@ def redirectShortenURL(request, short_url): print(Exception) cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES ("' + host + "/" + short_url.lower() + "\")") - return redirect(url) + return redirect(url) #I use temp redirect here, because the owner of a link can delete it. If then the link is reused, the user will maybe redirected to the wrong page else: abort(404)