Skip to content
Extraits de code Groupes Projets
Valider 95743eba rédigé par JamesRezo's avatar JamesRezo :tada:
Parcourir les fichiers

chore: #4881 suppression de la globale flag_sapi_name, la fonction...

chore: #4881 suppression de la globale flag_sapi_name, la fonction php_sapi_name() étant toujours présente depuis PHP4.0.1 (juin 2000)
parent 51d9483b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2725,7 +2725,6 @@ function spip_initialisation_core($pi = null, $pa = null, $ti = null, $ta = null ...@@ -2725,7 +2725,6 @@ function spip_initialisation_core($pi = null, $pa = null, $ti = null, $ta = null
$GLOBALS['flag_ob'] = (function_exists('ob_start') $GLOBALS['flag_ob'] = (function_exists('ob_start')
&& function_exists('ini_get') && function_exists('ini_get')
&& !strstr(@ini_get('disable_functions'), 'ob_')); && !strstr(@ini_get('disable_functions'), 'ob_'));
$GLOBALS['flag_sapi_name'] = function_exists('php_sapi_name');
$GLOBALS['flag_get_cfg_var'] = (@get_cfg_var('error_reporting') != ''); $GLOBALS['flag_get_cfg_var'] = (@get_cfg_var('error_reporting') != '');
$GLOBALS['flag_upload'] = (!$GLOBALS['flag_get_cfg_var'] || $GLOBALS['flag_upload'] = (!$GLOBALS['flag_get_cfg_var'] ||
(get_cfg_var('upload_max_filesize') > 0)); (get_cfg_var('upload_max_filesize') > 0));
......
...@@ -183,7 +183,7 @@ function login_auth_http() { ...@@ -183,7 +183,7 @@ function login_auth_http() {
!$GLOBALS['ignore_auth_http'] !$GLOBALS['ignore_auth_http']
and _request('var_erreur') == 'cookie' and _request('var_erreur') == 'cookie'
and (!isset($_COOKIE['spip_session']) or $_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())) and (preg_match(',apache,i', php_sapi_name())
or preg_match(',^Apache.* PHP,', $_SERVER['SERVER_SOFTWARE'])) or preg_match(',^Apache.* PHP,', $_SERVER['SERVER_SOFTWARE']))
// Attention dans le cas 'intranet' la proposition de se loger // Attention dans le cas 'intranet' la proposition de se loger
// par auth_http peut conduire a l'echec. // par auth_http peut conduire a l'echec.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter