This commit is contained in:
fram3d 2024-02-14 00:25:59 +01:00
parent 004b1a1c37
commit a2ec1aeebd
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
1 changed files with 1 additions and 1 deletions

View File

@ -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")