Skip to content
Extraits de code Groupes Projets
Valider 1b9d5fda rédigé par Fil's avatar Fil
Parcourir les fichiers

compatibilite club-internet & herbergeurs sans QUERY-STRING dans la...

compatibilite club-internet & herbergeurs sans QUERY-STRING dans la REQUEST_URI; cf. http://forum.spip.org/fr_184153.html?var_recherche=club%20internet et #460
parent 21d1d0e0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -714,7 +714,9 @@ function generer_url_ecrire($script, $args="", $no_entities=false, $rel=false) {
$rel = _DIR_RESTREINT ? _DIR_RESTREINT : './';
// Les anciens IIS n'acceptent pas les POST sur ecrire/ (#419)
if (strstr($_SERVER['SERVER_SOFTWARE'], 'IIS')) $rel .= 'index.php';
// meme pb sur thttpd cf. http://forum.spip.org/fr_184153.html
if (preg_match(',IIS|thttpd,',$_SERVER['SERVER_SOFTWARE']))
$rel .= 'index.php';
if ($script AND $script<>'accueil')
$args = "?exec=$script" . (!$args ? '' : "&$args");
......@@ -961,12 +963,10 @@ function spip_initialisation() {
//
// Compatibilite avec serveurs ne fournissant pas $REQUEST_URI
if (!$GLOBALS['REQUEST_URI']) {
if (!$GLOBALS['REQUEST_URI'])
$GLOBALS['REQUEST_URI'] = $_SERVER['PHP_SELF'];
if ($_SERVER['QUERY_STRING'] AND !strpos($_SERVER['REQUEST_URI'], '?'))
$GLOBALS['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
}
if ($_SERVER['QUERY_STRING'] AND !strpos($_SERVER['REQUEST_URI'], '?'))
$GLOBALS['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
// tidy en ligne de commande (si on ne l'a pas en module php,
// ou si le module php ne marche pas)
......
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