Anybody have any idea where I can look to change the behavior?
As expected, the "magic quotes" settings don't do anything, since the feature is gone now. However something is trying to be helpful and I'm not sure what.
Steps to reproduce:
- Have a field on a form
- Enter something with a single quote like
"Terry's String"
- Post the form
- $_POST['fieldname']) now contains the entered string with single quotes prefaced with a
\
like:Terry\'s String
Turning off magic quotes in the php config file has no effect.
Anybody have any idea where else to look or how to troubleshoot this?
Edit `var_dump($_POST['FirstName']);
returns:
string(15) "Terry's String"`
var_dump($_GET['FirstName']); returns
array(1) { ["FirstName"]=> string(8) "Terry\'s" }
when I pass the param in a GET.
Form post from the browser shows: FirstName=Terry%27s+String