From a8ade2beb0a15a77c4f0e57e15e527bd6111901d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 19 Jul 2007 17:38:16 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20remplacement=20de=20LIKE=20dans=20la=20r?= =?UTF-8?q?equete=20sql=20par=20REGEXP=20afin=20de=20palier=20au=20diff=E9?= =?UTF-8?q?rent=20format=20de=20num=E9rotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/propale/mod_propale_saphir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/modules/propale/mod_propale_saphir.php b/htdocs/includes/modules/propale/mod_propale_saphir.php index c0e80d48374..0a9970765a7 100644 --- a/htdocs/includes/modules/propale/mod_propale_saphir.php +++ b/htdocs/includes/modules/propale/mod_propale_saphir.php @@ -205,7 +205,7 @@ function info() // Recherche rapide car restreint par un like sur champ indexé $sql = "SELECT MAX(0+SUBSTRING(ref,-".$posindice."))"; $sql.= " FROM ".MAIN_DB_PREFIX."propal"; - $sql.= " WHERE ref like '^".$searchyy."'"; + $sql.= " WHERE ref REGEXP '^".$searchyy."'"; $resql=$db->query($sql); if ($resql) {