From ae9a9cc9ebeedacf72d6872469ce194e49fc5ddb Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Wed, 28 Feb 2018 14:14:09 -0600 Subject: [PATCH] format: Fix Vimeo iFrames MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- include/class.format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.format.php b/include/class.format.php index ecd44bb16..27497d3d3 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -322,7 +322,7 @@ class Format { 'hook_tag' => function($e, $a=0) { return Format::__html_cleanup($e, $a); }, 'elements' => '*+iframe', '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); -- GitLab