aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-01-24 11:44:34 +0000
committerMario <mario@mariovavti.com>2025-01-24 11:44:34 +0000
commit69a23c604d0f6528481e2e9bb75295b8cac94b15 (patch)
tree0e6d3581536e2cdacb83a04cde2a1ed3f8e434d5
parent9b13055dfedf80a0052752990f80efaaff5b2614 (diff)
downloadvolse-hubzilla-69a23c604d0f6528481e2e9bb75295b8cac94b15.tar.gz
volse-hubzilla-69a23c604d0f6528481e2e9bb75295b8cac94b15.tar.bz2
volse-hubzilla-69a23c604d0f6528481e2e9bb75295b8cac94b15.zip
return if $furl is empty for some reason
(cherry picked from commit 174469970a317744789551d499ef9471664a7f96) Co-authored-by: Mario Vavti <mario@mariovavti.com>
-rw-r--r--include/oembed.php4
1 files changed, 4 insertions, 0 deletions
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);
}