From b3ebd51676232eff14fc91ecc3896d114edadc60 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Sat, 26 Mar 2011 15:02:46 +0000
Subject: [PATCH] =?UTF-8?q?#1472=20:=20mieux=20detecter=20la=20connexion?=
 =?UTF-8?q?=20a=20l'espace=20priv=C3=A9=20pour=20afficher=20le=20message?=
 =?UTF-8?q?=20correspondant?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 prive/login.html | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/prive/login.html b/prive/login.html
index 8c23cfb659..c3c74a76c1 100644
--- a/prive/login.html
+++ b/prive/login.html
@@ -24,13 +24,11 @@ jQuery('a#spip_pass').click(function(){window.open(this.href, 'spip_pass', 'scro
 <div id="minipres">
 
 	<h1>#NOM_SITE_SPIP</h1>
-	
 	[(#REM)
 		Est-ce qu'on se connecte a l'espace prive ou pas ?
 	][
-	(#ENV**{url}|=={''}
-	|?{' ',[(#ENV**{url}|match{^#EVAL{_DIR_RESTREINT_ABS}}
-		|?{' '})]})
+	(#ENV**{url}|non
+	|ou{[(#ENV**{url}|match{^(/.*/)?#EVAL{_DIR_RESTREINT_ABS}})]})
 	<h3 class="spip"><:login_acces_prive:></h3>
 	]
 	#MENU_LANG_ECRIRE
-- 
GitLab