Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
@ -22,8 +22,8 @@ if( !class_exists('HTMLPurifier_Filter_Iframevideo') ){
|
|||||||
public function preFilter($html, $config, $context)
|
public function preFilter($html, $config, $context)
|
||||||
{
|
{
|
||||||
if (strstr($html, '<iframe')) {
|
if (strstr($html, '<iframe')) {
|
||||||
$html = preg_replace_callback('/<iframe.*?src="https?:\/\/www\.youtube\.com\/embed\/([^"]*)[^>]*>(.*?)?\/iframe>/si', array($this, 'trust_url_match'), $html);
|
$html = preg_replace_callback('/<iframe.*?src="https?:\/\/www\.youtube\.com\/embed\/([^"]*)[^>]*>(.*?)?\/iframe>/i', array($this, 'trust_url_match'), $html);
|
||||||
$html = preg_replace_callback('/<iframe.*?src="https?:\/\/player\.vimeo.com\/video\/([^"]*)[^>]*>(.*?)?\/iframe>/si', array($this, 'trust_url_match'), $html);
|
$html = preg_replace_callback('/<iframe.*?src="https?:\/\/player\.vimeo.com\/video\/([^"]*)[^>]*>(.*?)?\/iframe>/i', array($this, 'trust_url_match'), $html);
|
||||||
//$html = preg_replace('#<iframe#i', '<img class="Iframevideo"', $html);
|
//$html = preg_replace('#<iframe#i', '<img class="Iframevideo"', $html);
|
||||||
//$html = preg_replace('#</iframe>#i', '</img>', $html);
|
//$html = preg_replace('#</iframe>#i', '</img>', $html);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user