note 36482 added to function.stripslashes

From: Date: Sat, 11 Oct 2003 03:11:44 +0000
Subject: note 36482 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-58219@lists.php.net to get a copy of this message
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)); } } ---- Manual Page -- http://www.php.net/manual/en/function.stripslashes.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36482 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36482&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36482&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58219) next »