prevent mod/cloud looping (ping gets a new session on each call [wtf?] which triggers our "changed uid" detector)
This commit is contained in:
parent
f63e220939
commit
9c4c0e6d23
@ -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){
|
||||
|
@ -1 +1 @@
|
||||
2014-02-21.595
|
||||
2014-02-22.596
|
||||
|
Reference in New Issue
Block a user