Use system.allowed_oembed config to allow iframe source
This commit is contained in:
@@ -1884,6 +1884,13 @@ class BBCode
|
||||
'player.vimeo.com/video/',
|
||||
];
|
||||
|
||||
$allowedIframeDomains = array_merge(
|
||||
$allowedIframeDomains,
|
||||
DI::config()->get('system', 'allowed_oembed') ?
|
||||
explode(',', DI::config()->get('system', 'allowed_oembed'))
|
||||
: []
|
||||
);
|
||||
|
||||
$text = HTML::purify($text, $allowedIframeDomains);
|
||||
|
||||
return $text;
|
||||
|
||||
Reference in New Issue
Block a user