mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Fix incorrect use of embed filter in HTMLPurifier
This commit is contained in:
parent
8b8d32c9dd
commit
2be2e8e73e
1 changed files with 1 additions and 2 deletions
|
|
@ -137,11 +137,10 @@ class Purifier
|
||||||
|
|
||||||
private function _getWhiteDomainRegx()
|
private function _getWhiteDomainRegx()
|
||||||
{
|
{
|
||||||
require_once(_XE_PATH_ . 'classes/security/EmbedFilter.class.php');
|
|
||||||
$oEmbedFilter = EmbedFilter::getInstance();
|
$oEmbedFilter = EmbedFilter::getInstance();
|
||||||
$whiteIframeUrlList = $oEmbedFilter->getWhiteIframeUrlList();
|
$whiteIframeUrlList = $oEmbedFilter->getWhiteIframeUrlList();
|
||||||
|
|
||||||
$whiteDomainRegex = '%^(';
|
$whiteDomainRegex = '%^https?://(';
|
||||||
$whiteDomainCount = count($whiteIframeUrlList);
|
$whiteDomainCount = count($whiteIframeUrlList);
|
||||||
|
|
||||||
$i=1;
|
$i=1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue