ZF-10119: Infinite loop in StripTags
Description
Hello,
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.
Regards,
Raphaël Dehousse
Comments
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
Thanks!
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.