diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-30 20:59:56 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-30 20:59:56 -0700 |
commit | e71672a4092e7795b6ba7f27675fb6316782495c (patch) | |
tree | 614defeb66cc4abe813b67498b0ca205d55d3ba6 /mod | |
parent | 2d76a5c76b173b5cc174763514127ef4de0cef62 (diff) | |
download | volse-hubzilla-e71672a4092e7795b6ba7f27675fb6316782495c.tar.gz volse-hubzilla-e71672a4092e7795b6ba7f27675fb6316782495c.tar.bz2 volse-hubzilla-e71672a4092e7795b6ba7f27675fb6316782495c.zip |
acct uri may have double slashes after scheme, may be url encoded
Diffstat (limited to 'mod')
-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", |