From 9c4c0e6d2313fc7d09e315f2bb39711af4a2774a Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 22 Feb 2014 03:38:23 -0800 Subject: prevent mod/cloud looping (ping gets a new session on each call [wtf?] which triggers our "changed uid" detector) --- mod/ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') 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){ -- cgit v1.2.3