fehlerbehebung

This commit is contained in:
xoy 2023-01-29 15:54:38 +01:00
parent 2a5af4be85
commit b2ee161247
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
}