2bigpigs Posted October 17, 2011 Posted October 17, 2011 I do it manually in my code and now all my messages have slashes in. That's a handy security feature but i like to do it manually. Is it possible to turn it off or do i have to change all my code to adapt to it? I wanted my system to be usable on any server so i'd rather not change too much code. Thanks again Quote
Xoviat Posted October 17, 2011 Posted October 17, 2011 AS far as I know there's nothing out of the ordinary here. However, I did experience something similar a few weeks ago, but I discovered a small error when handling $_POST/$_GET variables and fixed the problem. Could this be the case with your code? Quote
Guest xaav Posted October 17, 2011 Posted October 17, 2011 I can't imagine why this would be happening. Maybe there is an error in your code. Quote
Byron Posted October 18, 2011 Posted October 18, 2011 I'm assuming your account is on Johnny? Johnny has Magic Quotes turned on and it should be off: magic_quotes_gpc = On I wanted my system to be usable on any server so i'd rather not change too much code. Then you would always add stripslashes() to compensate for a server who had it on or off. $text = stripslashes($_POST[text]); But you don't have to do that as soon as xaav turns it off. Quote
jje Posted October 18, 2011 Posted October 18, 2011 magic_quotes_gpc has now been disabled on Johnny. Even though I have no idea what it means.... but they have. Quote
Guest xaav Posted October 19, 2011 Posted October 19, 2011 Wow, I can't believe PHP still keeps magic quotes on by default. Quote
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.