PHP 4.0 Bug #6669 Updated: htmlspecialchars misbehaving
| From: | Bug Database | Date: | Tue, 12 Sep 2000 06:05:42 +0000 |
| Subject: | PHP 4.0 Bug #6669 Updated: htmlspecialchars misbehaving | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32948@lists.php.net to get a copy of this message | ||
ID: 6669
Updated by: joey
Reported By: chr@tv2i.dk
Status: Closed
Bug Type: *Function Specific
Assigned To:
Comments:
#1) This is fixed in 4.0.3/CVS.
#2) This is currently being (heateadly) discussed,
as to what the proper behavior of this function.
Rest assured, if there IS a change made, it will
be because there is a good reason for it.
Thanks for your report!
Previous Comments:
---------------------------------------------------------------------------
[2000-09-12 01:59:12] chr@tv2i.dk
The function call
htmlspecialchars("'")
returns
'
instead of the expected
'
I believe this is a bug rather than a documentation problem, because there is generally do need to
escape ' in HTML.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6669