ZF-10119: Infinite loop in StripTags

Issue Type: Bug Created: 2010-07-08T01:00:09.000+0000 Last Updated: 2010-07-11T06:08:42.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Raphael Dehousse (thymus) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

Related issues: Attachments: - ZF-10119_StripTags.patch



using special characters (we do not where they come from, we received this character from our blog platform), StripTags enters in an infinite loop when trying to remove the comments

I'll attach a test case that fail, a proposition of patch that solve the problem.


Raphaël Dehousse


Posted by Raphael Dehousse (thymus) on 2010-07-08T01:03:12.000+0000

The test case that fail because of a max execution time exceeded

Posted by Raphael Dehousse (thymus) on 2010-07-08T01:07:45.000+0000

And a patch that solve the problem

Maybe there is a reason with the "u" modifier was there, so, maybe it's not the good solution, but in any case, like that, the test pass


Best regards,

Raphaël Dehousse

Posted by Thomas Weidner (thomas) on 2010-07-10T00:03:25.000+0000

Without the "u" modifier any unicode regex will fail. This is a negotation of existing functionality.

Therefor this patch is not accepted.

Posted by Thomas Weidner (thomas) on 2010-07-11T06:08:40.000+0000

Added UTF8 tests. Patch works as expected and has been added.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.