]> git.mxchange.org Git - friendica.git/commitdiff
http status for disallowed feeds
authorfriendica <info@friendica.com>
Wed, 24 Apr 2013 03:12:49 +0000 (20:12 -0700)
committerfriendica <info@friendica.com>
Wed, 24 Apr 2013 03:12:49 +0000 (20:12 -0700)
mod/dfrn_poll.php

index bcb3fb3d7c832e0f33104e44b420e42146f014a3..90b3583b8696a7ddf48ee77a4b86c1b713f0f300 100644 (file)
@@ -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'];
                }