aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-13 09:18:54 +0000
committerMario <mario@mariovavti.com>2020-11-13 09:18:54 +0000
commit16071f300ee197bb8ef460e714e7eb5936622596 (patch)
tree805bbe394f4dbe927f9858d0a5c8e6a4841941a4 /Zotlabs
parenta8de999b7c87d1cd05f625f0d950694f60e28f24 (diff)
downloadvolse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.tar.gz
volse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.tar.bz2
volse-hubzilla-16071f300ee197bb8ef460e714e7eb5936622596.zip
better check for valid inbox
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php16
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) {