use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Protocol\Salmon;
+use Friendica\Util\Strings;
function xrd_init(App $a)
{
System::httpExit(404);
}
- $uri = urldecode(notags(trim($_GET['uri'])));
+ $uri = urldecode(Strings::removeTags(trim($_GET['uri'])));
if (defaults($_SERVER, 'HTTP_ACCEPT', '') == 'application/jrd+json') {
$mode = 'json';
} else {
System::httpExit(404);
}
- $uri = urldecode(notags(trim($_GET['resource'])));
+ $uri = urldecode(Strings::removeTags(trim($_GET['resource'])));
if (defaults($_SERVER, 'HTTP_ACCEPT', '') == 'application/xrd+xml') {
$mode = 'xml';
} else {