зеркало из https://github.com/nextcloud/news.git
Merge pull request #916 from rakshazi/patch-1
Added vk.com video to HTMLPurifier SafeIframe
This commit is contained in:
Коммит
b3a7f20a6c
|
@ -117,7 +117,8 @@ class Application extends App {
|
|||
$config->set('URI.SafeIframeRegexp',
|
||||
'%^https://(?:www\.)?(' .
|
||||
'youtube(?:-nocookie)?.com/embed/|' .
|
||||
'player.vimeo.com/video/)%'); //allow YouTube and Vimeo
|
||||
'player.vimeo.com/video/|' .
|
||||
'vk.com/video_ext.php)%'); //allow YouTube and Vimeo
|
||||
$def = $config->getHTMLDefinition(true);
|
||||
$def->addAttribute('iframe', 'allowfullscreen', 'Bool');
|
||||
return new HTMLPurifier($config);
|
||||
|
|
Загрузка…
Ссылка в новой задаче