From: Mischa POSLAWSKY Date: Fri, 1 May 2020 18:10:52 +0000 (+0200) Subject: login: status 403 for initial unauthorised redirects X-Git-Tag: v4.5~23 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/6f67c60627918b9ef956914c63cb7290b7e2de13 login: status 403 for initial unauthorised redirects Appropriate error code for original requests. --- diff --git a/login/index.php b/login/index.php index 6783a47..897346d 100644 --- a/login/index.php +++ b/login/index.php @@ -38,6 +38,7 @@ elseif (isset($_GET['logout'])) { if (!$User or !$User->login) { $Article->title = 'Inloggen'; if (isset($_REQUEST['goto'])) { + if (empty($message)) http_response_code(403); $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html");