[nycphp-talk] Odd Results
Joseph Crawford
codebowl at gmail.com
Tue Feb 8 12:02:06 EST 2005
i found the culprit,
/ *
if( get_magic_quotes_gpc() ) {
if( isset( $_GET )) {
$_GET = array_map( 'ArrayStripSlashes', $_GET );
}
if( isset( $_POST ) ) {
$_POST = array_map( 'ArrayStripSlashes', $_POST );
}
if( isset( $_COOKIES ) ) {
$_COOKIES = array_map( 'ArrayStripSlashes', $_COOKIES );
}
if( isset( $_REQUEST ) ) {
$_REQUEST = array_map( 'ArrayStripSlashes', $_REQUEST );
}
}
// just a recursive function to strip slashes from variables/arrays
function ArrayStripSlashes( $val ) {
if( is_array( $val ) ) {
return array_map( 'ArrayStripSlashes', $val );
}
else return stripslashes( $val );
}
*/
some reason that code was hindering the super global variables.
--
Joseph Crawford Jr.
Codebowl Solutions
codebowl at gmail.com
More information about the talk
mailing list