]> git.mxchange.org Git - friendica.git/blobdiff - mod/webfinger.php
Move credits out of util/
[friendica.git] / mod / webfinger.php
index 3e205ec03057afb82c686ed622a729f897243cc4..4f23db6d8f300bd8e42732cee9df1cc44594a261 100644 (file)
@@ -4,12 +4,13 @@
  */
 use Friendica\App;
 use Friendica\Core\L10n;
+use Friendica\Core\System;
 use Friendica\Network\Probe;
 
 function webfinger_content(App $a)
 {
        if (!local_user()) {
-               http_status_exit(
+               System::httpExit(
                        403,
                        [
                                "title" => L10n::t("Public access denied."),
@@ -19,10 +20,10 @@ function webfinger_content(App $a)
                killme();
        }
 
-       $o .= '<h3>Webfinger Diagnostic</h3>';
+       $o  = '<h3>Webfinger Diagnostic</h3>';
 
        $o .= '<form action="webfinger" method="get">';
-       $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
+       $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . defaults($_GET, 'addr', '') .'" />';
        $o .= '<input type="submit" name="submit" value="Submit" /></form>';
 
        $o .= '<br /><br />';