X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fprive%2Fformulaires%2Flogin.php;fp=www%2Fprive%2Fformulaires%2Flogin.php;h=06a9c067bf83b4da5a012083078bff1065322973;hp=067cf9bea02dd7e5d8367e27a7c89c7121223d70;hb=5be150361b3c836d9206941ba43f862df11466db;hpb=bca3db9e1ab94e469b01f7e994a5e095de5f88c4 diff --git a/www/prive/formulaires/login.php b/www/prive/formulaires/login.php index 067cf9b..06a9c06 100644 --- a/www/prive/formulaires/login.php +++ b/www/prive/formulaires/login.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -106,7 +106,7 @@ function login_auth_http() { if (!$GLOBALS['ignore_auth_http'] AND _request('var_erreur')=='cookie' - AND $_COOKIE['spip_session'] != 'test_echec_cookie' + AND (!isset($_COOKIE['spip_session']) OR $_COOKIE['spip_session'] != 'test_echec_cookie') AND (($GLOBALS['flag_sapi_name'] AND preg_match(",apache,i", @php_sapi_name())) OR preg_match(",^Apache.* PHP,", $_SERVER['SERVER_SOFTWARE'])) // Attention dans le cas 'intranet' la proposition de se loger