fehlerbehebung

This commit is contained in:
xoy 2023-01-29 15:54:38 +01:00
parent 3c26b05dd8
commit 8f624fd1ce
1 changed files with 2 additions and 2 deletions

View File

@ -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
}