From a2ec1aeebd70068acbfa8ff4897ff652b13261b5 Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 14 Feb 2024 00:25:59 +0100 Subject: [PATCH] fix typo --- taskmanager/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskmanager/routes.py b/taskmanager/routes.py index 8e882b3..d53279e 100644 --- a/taskmanager/routes.py +++ b/taskmanager/routes.py @@ -29,7 +29,7 @@ def addtask(): username = request.form['username'] # Input sanitation # Task name - if not taskname.printable() or ("<" in taskname and ">" in taskname): + if not taskname.isprintable() or ("<" in taskname and ">" in taskname): return render_template('pages/response.html', response = "Task name has to be made only of letters or numbers.") if len(taskname) < 1 or len(taskname) > 40: return render_template('pages/response.html', response = "Task name lenght invalid, only smaller then 40 charachters allowed")