Changeset 96626 in spip-zone for _plugins_/fulltext


Ignore:
Timestamp:
Apr 14, 2016, 1:37:26 PM (4 years ago)
Author:
cedric@…
Message:

bugfix sur la regexp qui choisit les champs pour index : un champ de type 'tinytext' tout court doit bien etre pris en compte

Location:
_plugins_/fulltext/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/fulltext/trunk/inc/fulltext.php

    r95480 r96626  
    9494
    9595        foreach ($champs as $i => $f) {
    96                 if (preg_match(',^(tiny|long|medium)?text\s,i', $desc['field'][$f]))
     96                if (preg_match(',^(tiny|long|medium)?text\b,i', $desc['field'][$f]))
    9797                        $champs[$i] = "`$f`";
    98                 else if (preg_match(',^varchar.*\s,i', $desc['field'][$f]) && !preg_match(',COLLATE utf8_bin.*\s,i', $desc['field'][$f]))
     98                else if (preg_match(',^varchar.*\b,i', $desc['field'][$f]) && !preg_match(',COLLATE utf8_bin.*\s,i', $desc['field'][$f]))
    9999                        $champs[$i] = "`$f`";
    100100                else
  • _plugins_/fulltext/trunk/paquet.xml

    r96418 r96626  
    22        prefix="fulltext"
    33        categorie="navigation"
    4         version="1.1.10"
     4        version="1.1.11"
    55        etat="test"
    66        compatibilite="[3.0.1;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.