magic_quotes_* plus prise en compte dans PHP6
This commit is contained in:
parent
38f6ec0bae
commit
596fe65152
@ -129,6 +129,12 @@ function stripslashes_deep($value)
|
|||||||
{
|
{
|
||||||
return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value));
|
return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value));
|
||||||
}
|
}
|
||||||
|
if(eregi('PHP/6', $_SERVER['SERVER_SOFTWARE']))
|
||||||
|
{
|
||||||
|
// magic_quotes_* plus prise en compte dans PHP6
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (get_magic_quotes_gpc())
|
if (get_magic_quotes_gpc())
|
||||||
{
|
{
|
||||||
$_GET = array_map('stripslashes_deep', $_GET);
|
$_GET = array_map('stripslashes_deep', $_GET);
|
||||||
@ -137,6 +143,7 @@ if (get_magic_quotes_gpc())
|
|||||||
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
||||||
}
|
}
|
||||||
@set_magic_quotes_runtime(0);
|
@set_magic_quotes_runtime(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Defini objet langs
|
// Defini objet langs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user