Skip to content
Snippets Groups Projects
Commit 98494778 authored by lordjbs's avatar lordjbs
Browse files

large brain man

parent 337a96c6
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,6 @@ def goto(id):
if not url:
return {"success": False, "error": "Invalid ID"}
else:
if not str.startswith(url, "https://") or not str.startswith(url, "http://"):
return redirect("https://" + url)
return redirect(url)
......
......@@ -23,12 +23,10 @@ def checkIfProperURL(url):
def returnProperURL(url):
out = url
print(out)
if not re.match(r'^https://', url) or not out.startswith("https://"):
if not re.match(r'^http://', url) or not out.startswith("http://"):
out = "https://" + url
print(out)
return out
def createID():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment