xcvxvcvxc

remotes/1693045480750635534/spooky-22
Aevann1 2022-01-22 01:59:39 +02:00
parent 92b0d45bec
commit 7d4c959c47
1 changed files with 2 additions and 2 deletions

View File

@ -571,10 +571,10 @@ def award_comment(cid, v):
g.db.add(c.author)
g.db.commit()
print(request.referrer)
if v.id == 1: print(request.referrer)
if request.referrer and len(request.referrer) > 1 and (request.referrer.startswith('/') or request.referrer.startswith(request.host_url)):
return redirect(request.referrer)
print(request.host_url)
if v.id == 1: print('host: ' request.host_url)
return redirect("/")
@app.get("/admin/awards")