fehlerbehebung
This commit is contained in:
parent
3c26b05dd8
commit
8f624fd1ce
|
@ -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