mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
Use system.allowed_oembed config to allow iframe source
This commit is contained in:
parent
93823ecef5
commit
393de1a283
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue