mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Fixes #4486 - Invalid attributes not being fully filtered.
This commit is contained in:
@@ -4955,6 +4955,7 @@ class e_parse
|
||||
continue;
|
||||
}
|
||||
|
||||
$removeAttributes = array();
|
||||
foreach($node->attributes as $attr)
|
||||
{
|
||||
$name = $attr->nodeName;
|
||||
@@ -4962,8 +4963,6 @@ class e_parse
|
||||
|
||||
$allow = isset($this->allowedAttributes[$tag]) ? $this->allowedAttributes[$tag] : $this->allowedAttributes['default'];
|
||||
|
||||
$removeAttributes = array();
|
||||
|
||||
if(!in_array($name, $allow))
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user