diff options
-rw-r--r-- | mod/xrd.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/xrd.php b/mod/xrd.php index 5d43147a7..c6c5515c5 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -3,8 +3,11 @@ function xrd_content(&$a) { - $uri = notags(trim($_GET['uri'])); + $uri = urldecode(notags(trim($_GET['uri']))); $local = str_replace('acct:', '', $uri); + if(substr($local,0,2) == '//') + $local = substr($local,2); + $name = substr($local,0,strpos($local,'@')); $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' LIMIT 1", |