From cfa0b7706226be6821d166ce7cb22a957c18b114 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Mar 2004 12:00:29 +0000 Subject: [PATCH] =?UTF-8?q?Quand=20on=20est=20authentifi=E9=20apache,=20la?= =?UTF-8?q?=20variable=20$GLOBAL[USER=5FNAME]=20n'est=20pas=20toujours=20d?= =?UTF-8?q?=E9finie=20car=20cela=20d=E9pend=20si=20register=5Fglobal=20est?= =?UTF-8?q?=20off=20ou=20non.=20$HTTP=5FSERVER=5FVARS=20est=20utilis=E9=20?= =?UTF-8?q?=E0=20la=20place.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index ddb74e0d6ec..85ba64c6f96 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -83,9 +83,9 @@ clearstatcache(); //XAVIER DUTOIT 18/09/2003 : si l'utilisateur n'est pas authentifié apache, on essaie pear Auth -if (!empty ($GLOBALS["REMOTE_USER"])) +if (!empty ($HTTP_SERVER_VARS["REMOTE_USER"])) { - $user->fetch($GLOBALS["REMOTE_USER"]); + $user->fetch($HTTP_SERVER_VARS["REMOTE_USER"]); } else {