Skip to content

Commit

Permalink
Merge branch 'patch_5.5.11' of github.com:gnuboard/gnuboard5
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jan 2, 2024
2 parents 1ff5df8 + b7c557f commit bc2c939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/htmlpurifier/extend.video.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public function postFilter($html, $config, $context)
protected function postFilterCallback($matches)
{
// Domain Whitelist
$youTubeMatch = preg_match('#src="https?://www.youtube(-nocookie)?.com/#i', $matches[1]);
$vimeoMatch = preg_match('#src="https?://player.vimeo.com/#i', $matches[1]);
$fackbookMatch = preg_match('#src="https?://www.facebook.com/#i', $matches[1]);
$youTubeMatch = preg_match('#src="https?://www\.youtube(-nocookie)?\.com/#i', $matches[1]);
$vimeoMatch = preg_match('#src="https?://player\.vimeo\.com/#i', $matches[1]);
$fackbookMatch = preg_match('#src="https?://www\.facebook\.com/#i', $matches[1]);
if ($youTubeMatch || $vimeoMatch || $fackbookMatch) {
$extra = ' frameborder="0"';
if ($youTubeMatch || $fackbookMatch) {
Expand Down

0 comments on commit bc2c939

Please sign in to comment.