[thelist] FW: Really annoying PHP escape problem
Rob Smith
rob.smith at THERMON.com
Thu Apr 8 13:30:17 CDT 2004
>urlencode() has nothing to do with it. look into your
>magic_quotes_gpc setting in php.ini. Turn it off and
>restart your server.
Or just do this:
<?php
if ((get_magic_quotes_gpc() == 1){
switch ($REQUEST_METHOD)
{
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)){
$$key = stripslashes($val);
}
break;
case "GET":
while (list ($key, $val) = each ($HTTP_GET_VARS)){
$$key = stripslashes($val);
}
break;
}
}
?>
(darn Crl+Enter grumble grumble)
More information about the thelist
mailing list