aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-22 03:38:23 -0800
committerfriendica <info@friendica.com>2014-02-22 03:38:23 -0800
commit9c4c0e6d2313fc7d09e315f2bb39711af4a2774a (patch)
tree5123f3fd520809dc307d6ebd3cce8814049087f1 /mod
parentf63e220939e0b46986750f292d7140df4d0eb429 (diff)
downloadvolse-hubzilla-9c4c0e6d2313fc7d09e315f2bb39711af4a2774a.tar.gz
volse-hubzilla-9c4c0e6d2313fc7d09e315f2bb39711af4a2774a.tar.bz2
volse-hubzilla-9c4c0e6d2313fc7d09e315f2bb39711af4a2774a.zip
prevent mod/cloud looping (ping gets a new session on each call [wtf?] which triggers our "changed uid" detector)
Diffstat (limited to 'mod')
-rw-r--r--mod/ping.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/ping.php b/mod/ping.php
index b9d9a9c77..390613d7a 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -28,7 +28,7 @@ function ping_init(&$a) {
header("content-type: application/json");
- $result['invalid'] = ((intval($_GET['uid'])) && (intval($_GET['uid']) != local_user()) ? 1 : 0);
+ $result['invalid'] = ((local_user()) && (intval($_GET['uid'])) && (intval($_GET['uid']) != local_user()) ? 1 : 0);
if(x($_SESSION,'sysmsg')){
foreach ($_SESSION['sysmsg'] as $m){