0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

Remove call-time pass-by-reference.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang 2010-03-08 03:45:11 -05:00
parent 0229458f8f
commit 63a854ee5d

View File

@ -40,7 +40,7 @@ class HTMLPurifier_Injector_RemoveSpansWithoutAttributes extends HTMLPurifier_In
$nesting = 0;
$spanContentTokens = array();
while ($this->forwardUntilEndToken(&$i, &$current, &$nesting)) {}
while ($this->forwardUntilEndToken($i, $current, $nesting)) {}
if ($current instanceof HTMLPurifier_Token_End && $current->name === 'span') {
// Mark closing span tag for deletion