Avoid possible problems with numeric nicknames and GNU Social

This commit is contained in:
Michael 2017-04-09 04:29:02 +00:00
parent 1a05efb026
commit 5c75fe4c14
3 changed files with 35 additions and 21 deletions

View file

@ -3,6 +3,13 @@ require_once("include/Probe.php");
function webfinger_content(App $a) {
if (!local_user()) {
http_status_exit(403,
array("title" => t("Public access denied."),
"description" => t("Only logged in users are permitted to perform a probing.")));
killme();
}
$o .= '<h3>Webfinger Diagnostic</h3>';
$o .= '<form action="webfinger" method="get">';