Bug #4068: htmlentities fails to escape single quote character
| From: | php at jon dot oaktree dot co dot uk | Date: | Fri, 07 Apr 2000 14:57:25 +0000 |
| Subject: | Bug #4068: htmlentities fails to escape single quote character | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17702@lists.php.net to get a copy of this message | ||
From: php@jon.oaktree.co.uk
Operating system: Any
PHP version: 3.0.16
PHP Bug Type: Misbehaving function
Bug description: htmlentities fails to escape single quote character
Script to reproduce problem:
<img alt='<? echo htmlentities($foo) ?>'>
Fix:
Make it escape the "'" character too.