diff options
author | Mišo Belica <[email protected]> | 2014-02-11 14:12:40 +0100 |
---|---|---|
committer | Mišo Belica <[email protected]> | 2014-02-11 14:12:40 +0100 |
commit | a1e7f337a4bab48a55e0b5f5cf4c6a2da1530ade (patch) | |
tree | da49887947462f32b2f647281dd0f8d7a5ca322a /test/HTML5/Parser | |
parent | 23479b1e18c4d037115f11b3aa5c2ff1cae86700 (diff) |
Fixed infinite loop for char "&" in unquoted attribute
Diffstat (limited to 'test/HTML5/Parser')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
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( '<foo ="bar">' => array('foo', array('=' => NULL, '"bar"' => NULL), FALSE), '<foo////>' => array('foo', array(), TRUE), + // character "&" in unquoted attribute shouldn't cause an infinite loop + '<foo bar=index.php?str=1&id=29>' => array('foo', array('bar' => 'index.php?str=1&id=29'), FALSE), ); foreach ($reallyBad as $test => $expects) { $events = $this->parse($test); |