1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 03:10:09 +02:00

Refactor Injector not to edit $result directly.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1212 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-06-23 19:39:03 +00:00
parent ae83bebc98
commit 5d0a992579
3 changed files with 86 additions and 72 deletions

View File

@@ -225,7 +225,8 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy
$current_nesting[] = $token;
} elseif ($token->type == 'end') {
// theoretical: this isn't used because performing
// the calculations otherwise is more efficient
// the calculations inline is more efficient, and
// end tokens currently do not cause a handler invocation
array_pop($current_nesting);
}
}