mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-24 06:47:02 +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
|
// NB not $this->zipper->insertBefore(), due to positioning
|
||||||
// differences
|
// differences
|
||||||
return $this->zipper->splice($this->token, 0, array($token))[1];
|
$splice = $this->zipper->splice($this->token, 0, array($token));
|
||||||
|
|
||||||
|
return $splice[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user