]> git.mxchange.org Git - friendica.git/blobdiff - mod/xrd.php
New class "System"
[friendica.git] / mod / xrd.php
index bfb889258cf5193ae21e4e4d8eb67df14a374871..78e3fbc9632f48d5a8114385a68be0830b0c9808 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 require_once('include/crypto.php');
 
@@ -8,6 +9,10 @@ function xrd_init(App $a) {
 
        $uri = urldecode(notags(trim($_GET['uri'])));
 
+       if ($uri == "") {
+               $uri = urldecode(notags(trim($_GET['resource'])));
+       }
+
        if(substr($uri,0,4) === 'http') {
                $acct = false;
                $name = basename($uri);