1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 14:16:32 +02:00

Fix infinite loop in Lexer.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang
2013-10-27 21:41:08 -07:00
parent e52d1fe310
commit 54477c172b
4 changed files with 14 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
--INI--
Core.CollectErrors = true
--HTML--
<style/onload = !-alert&#x28;1&#x29;>
--EXPECT--
--# vim: et sw=4 sts=4

View File

@@ -56,7 +56,7 @@ class HTMLPurifier_Lexer_DirectLexTest extends HTMLPurifier_Harness
$expect[11] = array();
$input[12] = '="" =""';
$expect[12] = array('"' => ''); // tough to say, just don't throw a loop
$expect[12] = array(); // tough to say, just don't throw a loop
$input[13] = 'href="';
$expect[13] = array('href' => '');