From 4dc082f5ea20b3f5c086bc4604a2e57c811c4004 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Sat, 24 Jun 2023 00:09:15 +0200 Subject: [PATCH] Added safty to /api/tag_id --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 37fc170..d8bdfda 100644 --- a/main.py +++ b/main.py @@ -274,8 +274,8 @@ def request_removetag(data): def get_id(): global finished global message - tag_id = int(request.args.get("id")) - c.execute(f"SELECT * FROM tags WHERE tagid ={tag_id}") + tag_id = request.args.get("id") + c.execute(f"SELECT * FROM tags WHERE tagid ='{tag_id}'") tag_list = c.fetchall() if users.qsize() > 0: