]> git.mxchange.org Git - friendica.git/blobdiff - mod/xrd.php
Continued a bit:
[friendica.git] / mod / xrd.php
index 93d7b18b065553c5c6d3441f525834421b5bdeff..7b812a7f9d94610d804515ba2e454cdf855762b0 100644 (file)
@@ -6,15 +6,14 @@ function xrd_init(App $a) {
 
        $uri = urldecode(notags(trim($_GET['uri'])));
 
-       if (substr($uri,0,4) === 'http') {
+       if(substr($uri,0,4) === 'http') {
                $acct = false;
                $name = basename($uri);
        } else {
                $acct = true;
                $local = str_replace('acct:', '', $uri);
-               if (substr($local,0,2) == '//') {
+               if(substr($local,0,2) == '//')
                        $local = substr($local,2);
-               }
 
                $name = substr($local,0,strpos($local,'@'));
        }