From b2ee161247d87771d053e80932c52736a778dedb Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 15:54:38 +0100 Subject: [PATCH] fehlerbehebung --- events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events.go b/events.go index 60b97c4..03c5c67 100644 --- a/events.go +++ b/events.go @@ -43,9 +43,9 @@ func addEvent(Event event) bool { return false } - sqlString := "insert into events (title, description, media, date) values ('" + Event.title + "', '" + Event.description + "', '" + Event.media + "', '" + Event.date + "');" + sqlString := "insert into events (title, description, media, date) values ('" + sqlClean(Event.title) + "', '" + sqlClean(Event.description) + "', '" + sqlClean(Event.media) + "', '" + sqlClean(Event.date) + "');" - dbQuerry(db, sqlClean(sqlString)) + dbQuerry(db, sqlString) return true }