diff options
author | zottel <github@zottel.net> | 2012-05-23 18:25:58 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-05-23 18:25:58 +0200 |
commit | 3aa516ccabc9bb09ae30ffa2d3657fba36699ea9 (patch) | |
tree | 93cd7fe6c2b9b0cc5851cb8324b5f6591d990f7f /mod/ping.php | |
parent | e9c86c0fd0fb87b49e60669e6d4be810ca426ec4 (diff) | |
parent | 61dba985c14ebcfd20d18b579aee9b781f98bc23 (diff) | |
download | volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.tar.gz volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.tar.bz2 volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/ping.php')
-rw-r--r-- | mod/ping.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/ping.php b/mod/ping.php index 63aaa0f45..55dcb26bb 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -10,8 +10,16 @@ function ping_init(&$a) { <result>"; $xmlhead="<"."?xml version='1.0' encoding='UTF-8' ?".">"; + if(local_user()){ + // Different login session than the page that is calling us. + + if(intval($_GET['uid']) && intval($_GET['uid']) != local_user()) { + echo '<invalid>1</invalid></result>'; + killme(); + } + $firehose = intval(get_pconfig(local_user(),'system','notify_full')); $t = q("select count(*) as total from notify where uid = %d and seen = 0", |