#7472 [Ver->Ana]: problem with strip_tags() function

From: Date: Mon, 29 Jul 2002 21:12:39 +0000
Subject: #7472 [Ver->Ana]: problem with strip_tags() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15525@lists.php.net to get a copy of this message
ID: 7472 Updated by: rodif_bl@php.net Reported By: kjackson@gpu.srv.ualberta.ca -Status: Verified +Status: Analyzed Bug Type: Strings related Operating System: linux PHP Version: 4.3.0-dev New Comment: looked at php_strip_tags, The state machine is tracking "'s, )'s and ('s. I don't know if this is necessary. Can fix by simply removing that code. Emailed dev list asking for any further info. Previous Comments: ------------------------------------------------------------------------ [2002-07-29 09:16:07] nohn@php.net Verified on Compaq Tru64/Alpha ------------------------------------------------------------------------ [2002-01-22 07:54:43] yohgaki@php.net Version updated ------------------------------------------------------------------------ [2002-01-22 07:34:33] martin@humany.com Bug still exists in PHP 4.1.1, tested under Linux 2.4 and Windows XP with: echo strip_tags("first <?echo \"\\\"\"?> second"); ------------------------------------------------------------------------ [2001-02-10 15:14:36] jimw@php.net it is the unbalanced quotes that causes this. smaller example: <?php echo strip_tags("first <?echo \"\\\"\"?> second"); ?> refiling against 4.0, although it would be nice if any fix were backported. (or the behavior could be documented.) ------------------------------------------------------------------------ [2000-10-25 23:09:32] kjackson@gpu.srv.ualberta.ca oops, did not escape dollar signs. Doing so does not effect results. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/7472 -- Edit this bug report at http://bugs.php.net/?id=7472&edit=1

« previous php.bugs (#15525) next »