From b36fb80eb9310bec5c23df90d48a78314193ce4b Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Jun 2020 09:40:43 +0000 Subject: [PATCH] File ending, Error Message --- mod/redir.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/redir.php b/mod/redir.php index cb1ca20e0..f38b6f7c3 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 +}