mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-13 01:23:59 +02:00
Fix infinite loop that occurs when we have unquoted attributes.
git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@24 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -152,6 +152,9 @@ class TestCase_HTML_Lexer extends UnitTestCase
|
||||
$input[] = '="asdf"';
|
||||
$expect[] = array();
|
||||
|
||||
$input[] = 'missile=launch';
|
||||
$expect[] = array('missile' => 'launch');
|
||||
|
||||
$size = count($input);
|
||||
for($i = 0; $i < $size; $i++) {
|
||||
$result = $this->HTML_Lexer->tokenizeAttributeString($input[$i]);
|
||||
|
Reference in New Issue
Block a user