0
0
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:
Edward Z. Yang 2013-10-22 14:17:41 -07:00
parent 0767bbc12d
commit e52d1fe310

View File

@ -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];
}
/**