From 3daf7ba6eb979c75aaf2b8e142690dbae734295c Mon Sep 17 00:00:00 2001
From: "rastapopoulos@spip.org" <>
Date: Tue, 15 May 2012 09:17:32 +0000
Subject: [PATCH] =?UTF-8?q?mb=5Fstrlen=20plut=C3=B4t=20que=20strlen,=20pou?=
 =?UTF-8?q?r=20les=20caract=C3=A8res=20non=20ascii?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 paquet.xml          | 2 +-
 plugin.xml          | 2 +-
 verifier/taille.php | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/paquet.xml b/paquet.xml
index 2af287a..e66b596 100644
--- a/paquet.xml
+++ b/paquet.xml
@@ -1,7 +1,7 @@
 <paquet
 	prefix="verifier"
 	categorie="outil"
-	version="0.1.14"
+	version="0.1.15"
 	etat="test"
 	compatibilite="[2.0.10;3.0.99]"
 	logo="images/verifier-128.png"
diff --git a/plugin.xml b/plugin.xml
index fb22e27..242898b 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -9,7 +9,7 @@
 	<auteur>[Les Développements Durables->http://www.ldd.fr]</auteur>
 	<icon>images/verifier-128.png</icon>
 	<licence>GPL v3</licence>
-	<version>0.1.14</version>
+	<version>0.1.15</version>
 	<etat>test</etat>
 	<description>
 		<multi>
diff --git a/verifier/taille.php b/verifier/taille.php
index d377e2c..6fea630 100644
--- a/verifier/taille.php
+++ b/verifier/taille.php
@@ -22,13 +22,13 @@ function verifier_taille_dist($valeur, $options=array()){
 	$erreur = '';
 
 	if (isset($options['min']))
-		$ok = ($ok and (strlen($valeur) >= $options['min']));
+		$ok = ($ok and (mb_strlen($valeur) >= $options['min']));
 	
 	if (isset($options['max'])){
-		$ok = ($ok and (strlen($valeur) <= $options['max']));
+		$ok = ($ok and (mb_strlen($valeur) <= $options['max']));
 	}
 	if (isset($options['egal'])){
-		$ok = ($ok and (strlen($valeur) == $options['egal']));
+		$ok = ($ok and (mb_strlen($valeur) == $options['egal']));
 	}
 	
 	if (!$ok){
-- 
GitLab