mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
Fix < PHP 5.4 compatibility break. Thanks GromNaN for submitting the patch.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
0767bbc12d
commit
e52d1fe310
@ -582,7 +582,9 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy
|
||||
{
|
||||
// NB not $this->zipper->insertBefore(), due to positioning
|
||||
// differences
|
||||
return $this->zipper->splice($this->token, 0, array($token))[1];
|
||||
$splice = $this->zipper->splice($this->token, 0, array($token));
|
||||
|
||||
return $splice[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user