From af2cd88fe1e16d26949e907cbdea07a6c863e83b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 8 Jul 2021 17:24:05 +0200 Subject: [PATCH] check that g_user exists and not the g_theme --- html/do.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/do.php b/html/do.php index b75a754d8..f2775eec5 100644 --- a/html/do.php +++ b/html/do.php @@ -34,6 +34,7 @@ require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; require_once NOALYSS_INCLUDE.'/lib/icon_action.class.php'; $http=new HttpInput(); + mb_internal_encoding("UTF-8"); // if gDossier is not set redirect to form to choose a folder if ( ! isset($_REQUEST['gDossier'])) @@ -41,7 +42,7 @@ if ( ! isset($_REQUEST['gDossier'])) redirect('user_login.php'); exit(); } -if ( ! isset ($_SESSION[SESSION_KEY.'g_theme'])) +if ( ! isset ($_SESSION[SESSION_KEY.'g_user'])) { echo "

"._('Vous êtes déconnecté')."

"; $backurl=$_SERVER['REQUEST_URI'];