File ending, Error Message
This commit is contained in:
parent
f2acce6bb2
commit
b36fb80eb9
|
@ -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.'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user