]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsubhubbub.php
Merge pull request #6548 from MrPetovan/bug/frio-fix-help-toc
[friendica.git] / mod / pubsubhubbub.php
index c9cb54d2e055a2de70cedeef577935685af8d5ba..342facd1076fa8b2c03cd56e9c5fb2d090c68c42 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\Util\Network;
 use Friendica\Util\Strings;
 
 function post_var($name) {
-       return (x($_POST, $name)) ? Strings::escapeTags(trim($_POST[$name])) : '';
+       return !empty($_POST[$name]) ? Strings::escapeTags(trim($_POST[$name])) : '';
 }
 
 function pubsubhubbub_init(App $a) {
@@ -33,7 +33,6 @@ function pubsubhubbub_init(App $a) {
        if ($_SERVER['REQUEST_METHOD'] === 'POST') {
                $hub_mode = post_var('hub_mode');
                $hub_callback = post_var('hub_callback');
-               $hub_verify = post_var('hub_verify');
                $hub_verify_token = post_var('hub_verify_token');
                $hub_secret = post_var('hub_secret');
                $hub_topic = post_var('hub_topic');
@@ -136,5 +135,5 @@ function pubsubhubbub_init(App $a) {
 
                System::httpExit(202);
        }
-       killme();
+       exit();
 }