note 54175 added to function.htmlentities

From: Date: Sun, 26 Jun 2005 07:21:42 +0000
Subject: note 54175 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-90961@lists.php.net to get a copy of this message
ça peut servir pour la sécurité : si par exemple un utilisateur d'un livre d'or entre du code html, il peut faire ce qu'il veut (executer un javascript par exemple), donc dans un livre d'or voici une bonne protection (il y a 2 champs, pseudo, message) $pseudo = htmlentities($_POST['pseudo'] $message = htmlentities($_POST['message'] voila A++ ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54175 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54175&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54175&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90961) next »