From 4f49d52d5ca1e317c544c72d55c93ed6e56dbb1c Mon Sep 17 00:00:00 2001 From: kent1 <kent1@arscenic.info> Date: Thu, 12 Nov 2009 14:54:33 +0000 Subject: [PATCH] Ne pas casser les redirections notamment du menu de langue --- ecrire/inc/headers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/headers.php b/ecrire/inc/headers.php index dd6bf5674d..5ae8f932bb 100644 --- a/ecrire/inc/headers.php +++ b/ecrire/inc/headers.php @@ -46,7 +46,7 @@ function redirige_par_entete($url, $equiv='', $status = 302) { // Il n'y a que sous Apache que setcookie puis redirection fonctionne include_spip('inc/cookie'); - if (!$equiv AND (!spip_cookie_envoye() OR (strncmp("Apache", $_SERVER['SERVER_SOFTWARE'],6)==0) OR defined('_SERVER_APACHE'))) { + if ((!$equiv AND !spip_cookie_envoye()) OR ((strncmp("Apache", $_SERVER['SERVER_SOFTWARE'],6)==0) OR defined('_SERVER_APACHE'))) { @header("Location: " . $url); $equiv=""; } else { -- GitLab