fsddsf
This commit is contained in:
parent
cf71ca6b0e
commit
99eb6ae9c0
22 changed files with 219 additions and 219 deletions
|
@ -21,7 +21,7 @@ def error_400(e, v):
|
|||
def error_401(e):
|
||||
|
||||
path = request.path
|
||||
qs = urlencode(dict(request.args))
|
||||
qs = urlencode(dict(request.values))
|
||||
argval = quote(f"{path}?{qs}", safe='')
|
||||
output = f"/login?redirect={argval}"
|
||||
|
||||
|
@ -70,7 +70,7 @@ def error_500(e, v):
|
|||
def allow_nsfw():
|
||||
|
||||
session["over_18"] = int(time.time()) + 3600
|
||||
return redirect(request.form.get("redir", "/"))
|
||||
return redirect(request.values.get("redir", "/"))
|
||||
|
||||
|
||||
@app.get("/error/<error>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue