#20343 [NEW]: strip_tags strip not only VALID tags

From: Date: Sun, 10 Nov 2002 19:40:08 +0000
Subject: #20343 [NEW]: strip_tags strip not only VALID tags
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24449@lists.php.net to get a copy of this message
From: atz@atz.msk.ru Operating system: FreeBSD 4.7-STABLE PHP version: 4CVS-2002-11-10 PHP Bug Type: Strings related Bug description: strip_tags strip not only VALID tags For example: PHP-code <? header("Content-type: text/plain"); echo strip_tags("the 5<6 but 5>4"); ?> will produce the 54 I think, that strip_tags() "think", that "<6 but 5>" is normal HTML-tag, but this not true. More examples: echo strip_tags("start <32423423423> end"); echo strip_tags("start <òåñò>not inside tag</òåñò> end"); EXCLUSIVE example: echo strip_tags('<IMG src="..." alt="next >>">'); It will produce >"> -- Edit bug report at http://bugs.php.net/?id=20343&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20343&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20343&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20343&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20343&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20343&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20343&r=support Expected behavior: http://bugs.php.net/fix.php?id=20343&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20343&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20343&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20343&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20343&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20343&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20343&r=isapi

« previous php.bugs (#24449) next »