From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.3.0
PHP Bug Type: Unknown/Other Function
Bug description: strip_slashes misses exclamation marks in alt text
The following code prints "!" (without the quotes):
print strip_tags('<IMG ALT="Bang Not Stripped!">');
I would expect it to print nothing.
Same thing happens here:
print strip_tags('<AREA ALT="Bang Not Stripped!">');
Here is an example copied from the command line:
[dan@192 v008]$ php
<?
print strip_tags('<IMG ALT="Bang Not Stripped!">') . "\n";
?>
!
[dan@192 v008]$
--
Edit bug report at http://bugs.php.net/?id=21744&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21744&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21744&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21744&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21744&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21744&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21744&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21744&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21744&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21744&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21744&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21744&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21744&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21744&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21744&r=gnused