X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwebfinger.php;h=b22b1ee64a69c4dde20dc60fa0c2e58370c72359;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=d72315a5b51e77c25444fa363885074910f0b7b5;hpb=8f253f6c1288534c50fac34f05afb1a2c07c9335;p=friendica.git diff --git a/mod/webfinger.php b/mod/webfinger.php index d72315a5b5..b22b1ee64a 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -1,31 +1,42 @@ t("Public access denied."), - "description" => t("Only logged in users are permitted to perform a probing."))); - killme(); + System::httpExit( + 403, + [ + "title" => L10n::t("Public access denied."), + "description" => L10n::t("Only logged in users are permitted to perform a probing.") + ] + ); + exit(); } + $o = '
'; $o .= '

Webfinger Diagnostic

'; $o .= '
'; - $o .= 'Lookup address: '; + $o .= 'Lookup address: '; $o .= '
'; $o .= '

'; - if(x($_GET,'addr')) { + if (!empty($_GET['addr'])) { $addr = trim($_GET['addr']); $res = Probe::lrdd($addr); $o .= '
';
-		$o .= str_replace("\n",'
',print_r($res,true)); + $o .= str_replace("\n", '
', print_r($res, true)); $o .= '
'; } + $o .= '
'; + return $o; }