X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FWebFinger.php;h=6c1ca51e5fac9083993bd5837118f2f209268bc9;hb=1d6f5c33a1a7c538d4e529d22701fd735855da15;hp=ca26fd866e17546440789db74cbde638e007d190;hpb=23c64b9a119c5df9f985ad4c62ef6fb79d68bee3;p=friendica.git diff --git a/src/Module/Debug/WebFinger.php b/src/Module/Debug/WebFinger.php index ca26fd866e..6c1ca51e5f 100644 --- a/src/Module/Debug/WebFinger.php +++ b/src/Module/Debug/WebFinger.php @@ -1,6 +1,6 @@ t('Only logged in users are permitted to perform a probing.')); - $e->httpdesc = DI::l10n()->t('Public access denied.'); - throw $e; + if (!DI::userSession()->getLocalUserId()) { + throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.')); } $addr = $_GET['addr'] ?? ''; @@ -49,8 +47,11 @@ class WebFinger extends BaseModule $tpl = Renderer::getMarkupTemplate('webfinger.tpl'); return Renderer::replaceMacros($tpl, [ - '$addr' => $addr, - '$res' => $res, + '$title' => DI::l10n()->t('Webfinger Diagnostic'), + '$submit' => DI::l10n()->t('Submit'), + '$lookup' => DI::l10n()->t('Lookup address:'), + '$addr' => $addr, + '$res' => $res, ]); } }