X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fwebfinger.php;h=6f49a8f28c44ebf9ea33ca2a1f3aa9778a50e7e0;hb=480d792356835db4bc29f28ec9ebb720864a3d99;hp=d823bd2dc217b988c8f5d41839ee22f77bfde8a8;hpb=5c75fe4c1440bcb1d7d6ec2e35e3abb116638e3a;p=friendica.git diff --git a/mod/webfinger.php b/mod/webfinger.php index d823bd2dc2..6f49a8f28c 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -1,16 +1,26 @@ t("Public access denied."), - "description" => t("Only logged in users are permitted to perform a probing."))); + System::httpExit( + 403, + [ + "title" => L10n::t("Public access denied."), + "description" => L10n::t("Only logged in users are permitted to perform a probing.") + ] + ); killme(); } - $o .= '

Webfinger Diagnostic

'; + $o = '

Webfinger Diagnostic

'; $o .= '
'; $o .= 'Lookup address: '; @@ -18,11 +28,11 @@ function webfinger_content(App $a) { $o .= '

'; - if(x($_GET,'addr')) { + if (x($_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 .= '
'; } return $o;