Skip to content
Snippets Groups Projects
Commit ae9a9cc9 authored by JediKev's avatar JediKev Committed by Peter Rotich
Browse files

format: Fix Vimeo iFrames

This addresses an issue where some Vimeo videos are not being sent in
Agent’s responses. This adds `player.vimeo` to the sanitize method’s
iframe section so that the iframe tag is not stripped.
parent 1d1df935
No related branches found
No related tags found
No related merge requests found
...@@ -322,7 +322,7 @@ class Format { ...@@ -322,7 +322,7 @@ class Format {
'hook_tag' => function($e, $a=0) { return Format::__html_cleanup($e, $a); }, 'hook_tag' => function($e, $a=0) { return Format::__html_cleanup($e, $a); },
'elements' => '*+iframe', 'elements' => '*+iframe',
'spec' => 'spec' =>
'iframe=-*,height,width,type,style,src(match="`^(https?:)?//(www\.)?(youtube|dailymotion|vimeo)\.com/`i"),frameborder'.($options['spec'] ? '; '.$options['spec'] : ''), 'iframe=-*,height,width,type,style,src(match="`^(https?:)?//(www\.)?(youtube|dailymotion|vimeo|player.vimeo)\.com/`i"),frameborder'.($options['spec'] ? '; '.$options['spec'] : ''),
); );
return Format::html($html, $config); return Format::html($html, $config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment