Fix vimeo url

1.10.x
jmontoyaa 10 years ago
parent be534d0c4d
commit ae61b4e252
  1. 2
      src/Chamilo/CoreBundle/Component/HTMLPurifier/Filter/AllowIframes.php

@ -55,7 +55,7 @@ class AllowIframes extends HTMLPurifier_Filter
{ {
// Domain Whitelist // Domain Whitelist
$youTubeMatch = preg_match('#src="(https:)?//www.youtube(-nocookie)?.com/#i', $matches[1]); $youTubeMatch = preg_match('#src="(https:)?//www.youtube(-nocookie)?.com/#i', $matches[1]);
$vimeoMatch = preg_match('#src="http://player.vimeo.com/#i', $matches[1]); $vimeoMatch = preg_match('#://player.vimeo.com/#i', $matches[1]);
$googleMapsMatch = preg_match('#src="https://maps.google.com/#i', $matches[1]); $googleMapsMatch = preg_match('#src="https://maps.google.com/#i', $matches[1]);
if ($youTubeMatch || $vimeoMatch || $googleMapsMatch) { if ($youTubeMatch || $vimeoMatch || $googleMapsMatch) {

Loading…
Cancel
Save