note 83011 added to function.htmlentities
| From: | contact at NOSPAM dot lya dot eu | Date: | Tue, 06 May 2008 19:31:50 +0000 |
| Subject: | note 83011 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139100@lists.php.net to get a copy of this message | ||
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
----
Server IP: 213.246.42.8
Probable Submitter: 82.231.25.80
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/83011
Del: integrated -- https://master.php.net/note/delete/83011/integrated
Del: useless -- https://master.php.net/note/delete/83011/useless
Del: bad code -- https://master.php.net/note/delete/83011/bad+code
Del: spam -- https://master.php.net/note/delete/83011/spam
Del: non-english -- https://master.php.net/note/delete/83011/non-english
Del: in docs -- https://master.php.net/note/delete/83011/in+docs
Del: other reasons-- https://master.php.net/note/delete/83011
Reject -- https://master.php.net/note/reject/83011
Search -- https://master.php.net/manage/user-notes.php