From 39617e77e419a627c71e6a81819d0543949e8d97 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 10 May 2020 11:59:58 +0200 Subject: [PATCH] Fix problem with redirect --- html/user_login.php | 2 +- include/constant.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/user_login.php b/html/user_login.php index 94e4a9099..0780af731 100644 --- a/html/user_login.php +++ b/html/user_login.php @@ -129,7 +129,7 @@ if ( $User->admin == 0 || (defined("MULTI")&& MULTI == 0 ) ) $folder=$User->get_available_folder(); if ( $folder != null && count($folder) == 1 ) { - + echo _("Si la redirection ne fonctionne pas, vous devez changer la valeur de NOALYSS_URL "); redirect(NOALYSS_URL.'/do.php?gDossier='.$folder[0]['dos_id']); exit(); } diff --git a/include/constant.php b/include/constant.php index a10f5bb39..b27c1a35c 100644 --- a/include/constant.php +++ b/include/constant.php @@ -322,7 +322,7 @@ if ( ! defined ("NOALYSS_URL")) { $protocol=$_SERVER['REQUEST_SCHEME']; } $base=$protocol.'://'. - $_SERVER['HTTP_HOST']. + $_SERVER['SERVER_NAME']. ":".$_SERVER['SERVER_PORT']. dirname($_SERVER['PHP_SELF']); define ("NOALYSS_URL",$base);