From c618290a4476fd01f46b079e8b95bbc16341cbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marjo=20Murtom=C3=A4ki?= Date: Mon, 27 Nov 2023 19:56:22 +0200 Subject: Adding csrf checking to every post handler. --- routes/analyse.py | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/analyse.py') diff --git a/routes/analyse.py b/routes/analyse.py index 3076d99..e256201 100644 --- a/routes/analyse.py +++ b/routes/analyse.py @@ -94,6 +94,7 @@ def analyse(): @app.route("/set/compare",methods=["POST"]) def set_compare(): + csrf_check("/#analyse") session["anal_user1"] = request.form["user1"] session["anal_user2"] = request.form["user2"] return redirect("/#analyse") -- cgit v1.2.3