diff options
author | Mario <mario@mariovavti.com> | 2024-03-14 09:47:08 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-14 09:47:08 +0000 |
commit | b7bda0b87d1884b2b2b98f7d4ec00890311fc156 (patch) | |
tree | 40a8a429ccea207c3f9d6dcec39061123b0c13e6 /Zotlabs/Lib | |
parent | 6bf61dfa6b585db01b607a79bd64ec9c583a9c10 (diff) | |
download | volse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.tar.gz volse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.tar.bz2 volse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.zip |
return false if we have nothing to look at
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 ( |