From: Michael Date: Wed, 3 Jun 2020 09:40:43 +0000 (+0000) Subject: File ending, Error Message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b36fb80eb9310bec5c23df90d48a78314193ce4b;p=friendica.git File ending, Error Message --- diff --git a/mod/redir.php b/mod/redir.php index cb1ca20e0e..f38b6f7c3c 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -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.')); -} \ No newline at end of file +}