diff options
author | Mario <mario@mariovavti.com> | 2020-11-13 09:18:54 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-13 09:18:54 +0000 |
commit | 16071f300ee197bb8ef460e714e7eb5936622596 (patch) | |
tree | 805bbe394f4dbe927f9858d0a5c8e6a4841941a4 /Zotlabs/Lib/Activity.php | |
parent | a8de999b7c87d1cd05f625f0d950694f60e28f24 (diff) | |
download | volse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.tar.gz volse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.tar.bz2 volse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.zip |
better check for valid inbox
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index a8e0da776..5f222754b 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1493,6 +1493,14 @@ class Activity { if(! is_array($person_obj)) return; + $inbox = $person_obj['inbox']; + + // invalid identity + + if (! $inbox || strpos($inbox,z_root()) !== false) { + return; + } + $name = $person_obj['name']; if(! $name) $name = $person_obj['preferredUsername']; @@ -1540,14 +1548,6 @@ class Activity { $profile = $url; } - $inbox = $person_obj['inbox']; - - // invalid identity - - if (! $inbox) { - return; - } - $collections = []; if($inbox) { |