mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-05 03:19:15 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
6
lib/htmlpurifier/library/HTMLPurifier/Injector.php
Executable file → Normal file
6
lib/htmlpurifier/library/HTMLPurifier/Injector.php
Executable file → Normal file
@@ -137,6 +137,12 @@ abstract class HTMLPurifier_Injector
|
||||
if (!isset($parent->child->elements[$name]) || isset($parent->excludes[$name])) {
|
||||
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;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user