From b0f3bcf496fa9f89585cebb3241973d95789fbc3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 7 Aug 2021 13:23:01 +0200 Subject: [PATCH] fd --- files/routes/errors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index 01281af43..190cdfdad 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -130,8 +130,7 @@ def error_503(e, v): def allow_nsfw(): session["over_18"] = int(time.time()) + 3600 - - return redirect(request.form.get("redir")) + return redirect(request.form.get("redir", "/")) @app.get("/error/")