View Single Post
Old 01-09-2013, 04:54 AM   PM User | #8
kochier
Regular Coder

 
Join Date: Jul 2008
Posts: 136
Thanks: 18
Thanked 0 Times in 0 Posts
kochier is on a distinguished road
Hmm well I've come to understand what you're telling me. Is it's basically just taking the backslash out when magic quotes are present? So basically I'd be comparing ' to &#039 which still wouldn't match. But now without the backslash I can use preg_replace to change ' to '. I still don't understand why this is an issue if I have PHP 5.2 with magic quotes off selected, shouldn't they be off then? Maybe something to take up with my host? Also why does POST change ' to '?


EDIT: I also tried switching to PHP 5.4 to fix the problem. It was still turning the &#039 to ', I figure this has something to do with post? Only thing I noticed with the change was it took away the backslash that occurred. As it caused errors in other pages I reverted back for now, but will upgrade as soon as I get a chance.

Last edited by kochier; 01-09-2013 at 05:11 AM..
kochier is offline   Reply With Quote