diff --git a/vendor/PicoFeed/Filter.php b/vendor/PicoFeed/Filter.php index 24279c0..a47b6ae 100644 --- a/vendor/PicoFeed/Filter.php +++ b/vendor/PicoFeed/Filter.php @@ -152,15 +152,12 @@ class Filter // Iframe source whitelist, everything else is ignored public static $iframe_whitelist = array( - '//www.youtube.com', 'http://www.youtube.com/', 'https://www.youtube.com/', 'http://player.vimeo.com/', 'https://player.vimeo.com/', - '//player.vimeo.com/', 'http://www.dailymotion.com', 'https://www.dailymotion.com', - '//www.dailymotion.com', ); @@ -240,6 +237,9 @@ class Filter $value = $attributes['data-src']; } + // Replace protocol-relative url // by http:// + if (substr($value, 0, 2) === '//') $value = 'http:'.$value; + $attr_data .= ' '.$attribute.'="'.$value.'"'; $used_attributes[] = $attribute; }