System::httpExit(503, ['title' => 'Error 503 - Service Temporarily Unavailable', 'description' => 'System is currently overloaded. Please try again later.']);
}
+if (strstr($a->query_string, '.well-known/host-meta') and ($a->query_string != '.well-known/host-meta')) {
+ System::httpExit(404);
+}
+
if (!$a->getMode()->isInstall()) {
if (Config::get('system', 'force_ssl') && ($a->get_scheme() == "http")
&& (intval(Config::get('system', 'ssl_policy')) == SSL_POLICY_FULL)
{
if ($a->argv[0] == 'xrd') {
if (empty($_GET['uri'])) {
- killme();
+ System::httpExit(404);
}
$uri = urldecode(notags(trim($_GET['uri'])));
}
} else {
if (empty($_GET['resource'])) {
- killme();
+ System::httpExit(404);
}
$uri = urldecode(notags(trim($_GET['resource'])));
$user = DBA::selectFirst('user', [], ['nickname' => $name]);
if (!DBA::isResult($user)) {
- killme();
+ System::httpExit(404);
}
$profile_url = System::baseUrl().'/profile/'.$user['nickname'];