mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Merge commit '154fc79e99' into develop
Conflicts: classes/security/EmbedFilter.class.php common/js/common.js common/js/xe.min.js config/config.inc.php
This commit is contained in:
commit
711cd1ea35
6 changed files with 12 additions and 37 deletions
|
|
@ -348,12 +348,7 @@ class EmbedFilter
|
|||
}
|
||||
}
|
||||
|
||||
if(!$isWhiteDomain && !$isWhiteMimetype && $ext)
|
||||
{
|
||||
$isWhiteExt = $this->isWhiteExt($ext);
|
||||
}
|
||||
|
||||
if(!$isWhiteDomain && !$isWhiteMimetype && !$isWhiteExt)
|
||||
if(!$isWhiteDomain || !$isWhiteMimetype)
|
||||
{
|
||||
$content = str_replace($objectTag, htmlspecialchars($objectTag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), $content);
|
||||
}
|
||||
|
|
@ -401,12 +396,7 @@ class EmbedFilter
|
|||
}
|
||||
}
|
||||
|
||||
if(!$isWhiteDomain && !$isWhiteMimetype && $ext)
|
||||
{
|
||||
$isWhiteExt = $this->isWhiteExt($ext);
|
||||
}
|
||||
|
||||
if(!$isWhiteDomain && !$isWhiteMimetype && !$isWhiteExt)
|
||||
if(!$isWhiteDomain || !$isWhiteMimetype)
|
||||
{
|
||||
$content = str_replace($embedTag, htmlspecialchars($embedTag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), $content);
|
||||
}
|
||||
|
|
@ -484,12 +474,7 @@ class EmbedFilter
|
|||
$ext = strtolower(substr(strrchr($parser->iNodeAttributes['value'], "."), 1));
|
||||
$isWhiteDomain = $this->isWhiteDomain($parser->iNodeAttributes['value']);
|
||||
|
||||
if(!$isWhiteDomain && $ext)
|
||||
{
|
||||
$isWhiteExt = $this->isWhiteExt($ext);
|
||||
}
|
||||
|
||||
if(!$isWhiteDomain && !$isWhiteExt)
|
||||
if(!$isWhiteDomain)
|
||||
{
|
||||
$content = str_replace($paramTag, htmlspecialchars($paramTag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), $content);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue