]> git.mxchange.org Git - friendica.git/blobdiff - mod/webfinger.php
new version of the ShaShape iconset
[friendica.git] / mod / webfinger.php
index dd6d72a13cca9963c7182c67a6df1badbebec73e..74bd2c9543c6ceda125719b075f1fe08f7845c08 100644 (file)
@@ -13,12 +13,14 @@ function webfinger_content(&$a) {
        $o .= '<br /><br />';
 
        if(x($_GET,'addr')) {
-               $addr = $_GET['addr'];
+               $addr = trim($_GET['addr']);
                if(strpos($addr,'@' !== false))
                        $res = webfinger($addr);
                else
                        $res = lrdd($addr);
+               $o .= '<pre>';
                $o .= str_replace("\n",'<br />',print_r($res,true));
+               $o .= '</pre>';
        }
        return $o;
-}
\ No newline at end of file
+}