From 174469970a317744789551d499ef9471664a7f96 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 24 Jan 2025 12:43:12 +0100 Subject: [PATCH] return if $furl is empty for some reason --- include/oembed.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/oembed.php b/include/oembed.php index f52f73225..840164663 100644 --- a/include/oembed.php +++ b/include/oembed.php @@ -143,6 +143,10 @@ function oembed_fetch_url($embedurl){ $furl = ((local_channel() && $zrl) ? zid($embedurl) : $embedurl); + if (empty($furl)) { + return; + } + if($action !== 'block' && (! Config::Get('system','oembed_cache_disable'))) { $txt = Cache::get('[' . App::$videowidth . '] ' . $furl); }