PHP 4.0 Bug #8998: htmlspecialchars() DONT convert a string/array ONCE
| From: | lopez at pepe-lopez dot com | Date: | Tue, 30 Jan 2001 12:10:04 +0000 |
| Subject: | PHP 4.0 Bug #8998: htmlspecialchars() DONT convert a string/array ONCE | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45370@lists.php.net to get a copy of this message | ||
From: lopez@pepe-lopez.com
Operating system: Debian/Linux
PHP version: 4.0.4pl1
PHP Bug Type: Strings related
Bug description: htmlspecialchars() DONT convert a string/array ONCE
Please note:
$foo = "<a href="foo">..</a>";
$foo = htmlspecialchars($foo);
//now $foo is "<a href="foo">..</a>"
$foo = "<a href="foo">..</a>";
//$foo is <a href="foo">..</a>
//although $foo is filled with a new value, $foo converts the string!
//sorry, my english is too poor to explain more
--
Edit Bug report at: http://bugs.php.net/?id=8998&edit=1