mirror of
https://github.com/friendica/friendica
synced 2024-11-10 20:11:41 +01:00
acct uri may have double slashes after scheme, may be url encoded
This commit is contained in:
parent
2d76a5c76b
commit
e71672a409
|
@ -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…
Reference in a new issue