fehlerbehebung
This commit is contained in:
parent
2a5af4be85
commit
b2ee161247
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue