From b7bda0b87d1884b2b2b98f7d4ec00890311fc156 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 14 Mar 2024 09:47:08 +0000 Subject: return false if we have nothing to look at --- Zotlabs/Lib/Activity.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index e19499c56..bb08ab48e 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3190,6 +3190,10 @@ class Activity { public static function media_not_in_body($s, $body) { + if (empty($body)) { + return false; + } + $s_alt = htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); if ( -- cgit v1.2.3