Peut-être devrait-on intégrer la fonctionnalité directement dans SPIP :
cf. http://php.weblogs.com/stories/storyReader$465
Here is a small piece of code to be placed at the beginning of each one of
your scripts which will simulate magic_quote_gpc=OFF, i.e. no \ added in
front of special characters in form fields.
<?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;
}
}
?>
@ Gregory Fabre (gregory@transfert.net) :