note 36482 deleted from function.stripslashes by didou
| From: | didou@php.net | Date: | Sat, 11 Oct 2003 08:40:13 +0000 |
| Subject: | note 36482 deleted from function.stripslashes by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58225@lists.php.net to get a copy of this message | ||
Note Submitter: real @ programmeur-analyste.com
----
Ce script est fort utile (particulierement inclus en haut d'une librairie) pour ne rien perdre
et garder le controle sur un magic_quote_gpc sur lequel vous n'avez pas le controle...:
Usefull script (much more include in a library) for to lost nothing and keeping the control on a
magic_quote_gpc on which you don't have the control...:
if ($_POST) {
foreach($_POST as $post => $value) {
${$post} = $_POST[$post] = stripslashes(htmlentities($value, ENT_QUOTES));
}
}
if ($_GET) {
foreach($_GET as $get => $value) {
${$get} = $_GET[$get] = stripslashes(htmlentities($value, ENT_QUOTES));
}
}