File ending, Error Message

2022.09-rc
Michael 2020-06-03 09:40:43 +00:00
rodzic f2acce6bb2
commit b36fb80eb9
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -48,7 +48,7 @@ function redir_init(App $a) {
redir_magic($a, $cid, $url);
if (empty($cid)) {
throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Contact not found.'));
throw new \Friendica\Network\HTTPException\BadRequestException(DI::l10n()->t('Bad Request.'));
}
$fields = ['id', 'uid', 'nurl', 'url', 'addr', 'name', 'network', 'poll', 'issued-id', 'dfrn-id', 'duplex', 'pending'];
@ -201,4 +201,4 @@ function redir_check_url(string $contact_url, string $url)
Logger::error('URL check host mismatch', ['contact' => $contact_url, 'url' => $url]);
throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Access denied.'));
}
}