johnsmith153 Posted June 22, 2012 Share Posted June 22, 2012 This is a PHP question. I can't understand why this is happening but for some reason Ajax requests (using JSON) are being escaped, where I'm sure that's never happened before. Magic Quotes are definitely off on my server. I'm not using jQuery for Ajax, just basic JS. In JS I url encode the JSON and then send, but it is retrieved by PHP like this: {\"variable_name\":\"value\"} Is it ok to just use stripslashes on it, because that makes it work? I thought stripslashes was frowned upon these days. Quote Link to comment Share on other sites More sharing options...
johnsmith153 Posted June 22, 2012 Author Share Posted June 22, 2012 Solved. Magic Quotes were on. I'd recently moved the settings to turn them off from .htaccess into a PHP config file, but of course Magic Quotes (and some other) PHP variables can't be set that way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.