Added safty to /api/tag_id

This commit is contained in:
2000-Trek 2023-06-24 00:09:15 +02:00
parent f17a14ac39
commit 4dc082f5ea

View file

@ -274,8 +274,8 @@ def request_removetag(data):
def get_id(): def get_id():
global finished global finished
global message global message
tag_id = int(request.args.get("id")) tag_id = request.args.get("id")
c.execute(f"SELECT * FROM tags WHERE tagid ={tag_id}") c.execute(f"SELECT * FROM tags WHERE tagid ='{tag_id}'")
tag_list = c.fetchall() tag_list = c.fetchall()
if users.qsize() > 0: if users.qsize() > 0: