diff options
author | Michael Vogel <icarus@dabo.de> | 2012-05-25 16:19:10 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-05-25 16:19:10 +0200 |
commit | a71e3134bf7250b60cafd1e51098eea70c3459de (patch) | |
tree | 456f59d30e5f4b8d22f4bfdac0c55e7323cd0427 /mod/ping.php | |
parent | 8c80fe0bf51fa472ddf9bf225490e47ea1bf4a7f (diff) | |
parent | d1345e505406b1a1cdc3fc26a1734916c8abc89d (diff) | |
download | volse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.tar.gz volse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.tar.bz2 volse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.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", |