mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Remove PHP 4 compatibility hack.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
8f401f769e
commit
804a06f01e
@ -36,8 +36,6 @@ class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy
|
|||||||
|
|
||||||
// note that we have no facilities here for removing tokens
|
// note that we have no facilities here for removing tokens
|
||||||
$validator->validateToken($token, $config, $context);
|
$validator->validateToken($token, $config, $context);
|
||||||
|
|
||||||
$tokens[$key] = $token; // for PHP 4
|
|
||||||
}
|
}
|
||||||
$context->destroy('CurrentToken');
|
$context->destroy('CurrentToken');
|
||||||
return $tokens;
|
return $tokens;
|
||||||
|
Loading…
Reference in New Issue
Block a user