From 037a807c9a11fc1acc832202d6d5972972152ad6 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Thu, 16 Nov 2023 14:08:23 +0100 Subject: [PATCH] Revert "suspend route 403 et 404" This reverts commit 249c470035fd1abbe940fe9811844d6f93e29282. --- core/class/router.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index e3cecd7..580a952 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -885,13 +885,11 @@ class core extends common } if ($access === false) { // Bascule sur le site d'accueil - /* if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') { $_SESSION['ZWII_SITE_CONTENT'] = 'home'; header('Location:' . helper::baseUrl() . $this->getUrl()); exit(); } - */ http_response_code(403); if ($accessInfo['userName']) { $this->addOutput([ @@ -914,12 +912,11 @@ class core extends common } } elseif ($this->output['content'] === '') { // Bascule sur le site d'accueil pour afficher la page d'erreur - /* if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') { $_SESSION['ZWII_SITE_CONTENT'] = 'home'; header('Location:' . helper::baseUrl() . $this->getUrl()); exit(); - }*/ + } http_response_code(404); if ( $this->getData(['config', 'page404']) !== 'none'