Browse Source

acct uri may have double slashes after scheme, may be url encoded

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
e71672a409
  1. 5
      mod/xrd.php

5
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",

Loading…
Cancel
Save