From 36f2930e523f966798b2e851e183d9507312e8bb Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 23 Apr 2013 20:12:49 -0700 Subject: [PATCH] http status for disallowed feeds --- mod/dfrn_poll.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index bcb3fb3d7c..90b3583b86 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -29,7 +29,7 @@ function dfrn_poll_init(&$a) { if(($dfrn_id === '') && (! x($_POST,'dfrn_id'))) { if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { - killme(); + http_status_exit(403); } $user = ''; @@ -37,8 +37,10 @@ function dfrn_poll_init(&$a) { $r = q("SELECT `hidewall`,`nickname` FROM `user` WHERE `user`.`nickname` = '%s' LIMIT 1", dbesc($a->argv[1]) ); - if((! count($r)) || (count($r) && $r[0]['hidewall'])) - killme(); + if(! $r) + http_status_exit(404); + if(($r[0]['hidewall']) && (! local_user())) + http_status_exit(403); $user = $r[0]['nickname']; } -- 2.39.5