forked from rDrama/rDrama
xcvxvcvxc
parent
92b0d45bec
commit
7d4c959c47
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue