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
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?
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.
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.
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.
Guest xaav Posted October 19, 2011 Posted October 19, 2011 Wow, I can't believe PHP still keeps magic quotes on by default.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now