From 9911cfe9a0d40b38a9a180af061027f04ef21439 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Tue, 25 Apr 2006 09:37:10 +0000
Subject: [PATCH] =?UTF-8?q?bug=20sur=20#LOGIN=5FPUBLIC=20employ=C3=A9=20?=
 =?UTF-8?q?=C3=A0=20la=20racine=20du=20site=20et=20sur=20l'erreur=20de=20m?=
 =?UTF-8?q?ot=20de=20passe=20(donnait=20/&var=5Ferreur=3Dpass=20)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/action/cookie.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/action/cookie.php b/ecrire/action/cookie.php
index bc4d92e47e..ccc7e006de 100644
--- a/ecrire/action/cookie.php
+++ b/ecrire/action/cookie.php
@@ -188,7 +188,7 @@ if ($essai_login == "oui") {
 			$redirect = generer_url_public('login',
 				"var_login=$login", true);
 		if ($session_password || $session_password_md5)
-			$redirect .= '&var_erreur=pass';
+			$redirect = parametre_url($redirect, 'var_erreur', 'pass', '&');
 		$redirect .= '&url=' . rawurlencode($url);
 		spip_log("echec login: $login");
 	}
-- 
GitLab