note 83011 deleted from function.htmlentities by bjori
| From: | bjori@php.net | Date: | Tue, 06 May 2008 19:55:32 +0000 |
| Subject: | note 83011 deleted from function.htmlentities by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139101@lists.php.net to get a copy of this message | ||
Note Submitter: contact at NOSPAM dot lya dot eu
Reason: bad code
----
htmlentities can generate a warning if the first parameter is an array even if warning reporting is
set to off.
You have to cast this parameter as a string
<?php
htmlentities((string)$_POST['string']);
?>
ref & more details : http://www.rabol.fr/?p=4