diff options
author | git-marijus <mario@mariovavti.com> | 2018-03-23 10:25:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 10:25:58 +0100 |
commit | e2b9162a30f60ba74038c4aa999d31d5e9338d7c (patch) | |
tree | dce716a2a6955b0b43d6176daa75517982a65541 /vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php | |
parent | eec4d9b5ad2ad3fbc4d5c5651fcccdc81b248af9 (diff) | |
parent | c80837a9e6a1d5049a03fbb608b2b650c1b0f92d (diff) | |
download | volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.gz volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.bz2 volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.zip |
Merge pull request #1010 from dawnbreak/dev
:arrow_up: Update libraries.
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php')
-rw-r--r-- | vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php index 5060eef9e..116b470c3 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php @@ -157,11 +157,13 @@ abstract class HTMLPurifier_Injector return false; } // check for exclusion - for ($i = count($this->currentNesting) - 2; $i >= 0; $i--) { - $node = $this->currentNesting[$i]; - $def = $this->htmlDefinition->info[$node->name]; - if (isset($def->excludes[$name])) { - return false; + if (!empty($this->currentNesting)) { + for ($i = count($this->currentNesting) - 2; $i >= 0; $i--) { + $node = $this->currentNesting[$i]; + $def = $this->htmlDefinition->info[$node->name]; + if (isset($def->excludes[$name])) { + return false; + } } } return true; |