From a1e7f337a4bab48a55e0b5f5cf4c6a2da1530ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1o=20Belica?= Date: Tue, 11 Feb 2014 14:12:40 +0100 Subject: Fixed infinite loop for char "&" in unquoted attribute --- test/HTML5/Parser/TokenizerTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/HTML5/Parser/TokenizerTest.php') diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 6c91455..245604f 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -379,6 +379,8 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $reallyBad = array( '' => array('foo', array('=' => NULL, '"bar"' => NULL), FALSE), '' => array('foo', array(), TRUE), + // character "&" in unquoted attribute shouldn't cause an infinite loop + '' => array('foo', array('bar' => 'index.php?str=1&id=29'), FALSE), ); foreach ($reallyBad as $test => $expects) { $events = $this->parse($test); -- cgit v1.2.3