Forums

WP Adding Quotes even with Magic Quotes Off

tschoch 17 Oct, 2016
Hello,

We are creating a form with some custom PHP code. When we save the code, slashes are being automatically added to the code to escape the quotes. We have verified that Magic Quotes is off in all 3 places (sybase, gpc, runtime). We have also noticed the slashes are being added to any "field notes" where there is an apostrophe as well. We have never seen this issue in the Joomla version.

Thanks,
GreyHead 18 Oct, 2016
Hi tschoch
,
Evidently magic quotes are still being applied somewhere as CF doesn't add them. Joomla! deprecated magic quotes a while, I don't think that WordPress has. I suggest that you dig around a bit more and see if you can identify the source - if not then maybe adding custom code to clean the data will be the answer :-(

Bob
tschoch 18 Oct, 2016
I figured out the issue. Once I turned off safe save in Chrono's settings it stopped adding the slashes...

I'm not sure why this CF setting would be adding slashes but either way that fixed the issue.

Thanks,
GreyHead 19 Oct, 2016
Hi tschoch,

Well done - I hadn't thought of that as a possibility.

Bob
This topic is locked and no more replies can be posted.