mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:03:40 +00:00
Issue 14471: Fix wegfinger request
This commit is contained in:
parent
65fe8fcf41
commit
b10255ca44
1 changed files with 2 additions and 2 deletions
|
@ -33,14 +33,14 @@ class Xrd extends BaseModule
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri = urldecode(trim($_GET['uri']));
|
$uri = urldecode(trim($_GET['uri']));
|
||||||
$mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_JSON);
|
$mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_XML);
|
||||||
} else {
|
} else {
|
||||||
if (empty($_GET['resource'])) {
|
if (empty($_GET['resource'])) {
|
||||||
throw new BadRequestException();
|
throw new BadRequestException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri = urldecode(trim($_GET['resource']));
|
$uri = urldecode(trim($_GET['resource']));
|
||||||
$mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_XML);
|
$mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_JSON);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Network::isValidHttpUrl($uri)) {
|
if (Network::isValidHttpUrl($uri)) {
|
||||||
|
|
Loading…
Reference in a new issue