X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpubsubhubbub.php;h=342facd1076fa8b2c03cd56e9c5fb2d090c68c42;hb=d0727e33d30d2ecf82f5b25c92da3bea183321c9;hp=c9cb54d2e055a2de70cedeef577935685af8d5ba;hpb=5eb8929f0c579630ce35c3e3c0d47e692c084c8a;p=friendica.git diff --git a/mod/pubsubhubbub.php b/mod/pubsubhubbub.php index c9cb54d2e0..342facd107 100644 --- a/mod/pubsubhubbub.php +++ b/mod/pubsubhubbub.php @@ -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(); }