diff options
author | Marjo Murtomäki <mmurtoma@local> | 2023-11-27 19:56:22 +0200 |
---|---|---|
committer | Marjo Murtomäki <mmurtoma@local> | 2023-11-27 19:56:22 +0200 |
commit | c618290a4476fd01f46b079e8b95bbc16341cbca (patch) | |
tree | 9b74d598584d25b7b032d53da919d3338d0eb191 /routes/analyse.py | |
parent | f965d5d1f799037cd49accae9256ed42b8c17ccb (diff) |
Adding csrf checking to every post handler.
Diffstat (limited to 'routes/analyse.py')
-rw-r--r-- | routes/analyse.py | 1 |
1 files changed, 1 insertions, 0 deletions
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") |