diff --git a/app/redirectShortenURL.py b/app/redirectShortenURL.py
index b6050b7b7cfb34c497a6827a74a588b65eec238b..dd37c83410d161d4a3adee8e61989947c6583991 100644
--- a/app/redirectShortenURL.py
+++ b/app/redirectShortenURL.py
@@ -22,7 +22,7 @@ def redirect_shorten_url(request, short_url):
                 calls = row[0] + 1
                 cursor.execute('UPDATE ANALYTICS SET CALLS = ? WHERE SHORT_URL=?', (str(calls), host + "/" + short_url.lower()))
             else:
-                cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES ("' + host + "/" + short_url.lower() + "\")")
+                cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES (?)', [host + "/" + short_url.lower()])
 
             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: