There’s an event called Let’s Do Lunch.
When I save it though, it changes the name to Let’s Do Lunch.
This isn’t visible until you refresh the page though.
Is this something in your system that does this, or is this a problem with some of my code?
I don’t do any processing as far as I know.
I’ve looked through all of the files, and can’t find any functions like ‘addslashes’ or ‘escape’ in my code.
Also, it’s definitely done before saving in the database, as if I check the database, it contains the slash. However, when I echo the title in the onEventSave function, it’s still pre-slash insertion.
What happens in between onEventSave and the actual saving to the database?
The php code of connector do use db level data escaping. It must not cause problems on its own.
On other hand, the same problem as in your case, was reported multiple times and in all cases it was related to Magic Quotes feature
You have changed php.ini, restarted the server and issue still occurs ?
From past experience the magic quotes is the only thing which can cause the above described effect.