Changeset 82575 in spip-zone


Ignore:
Timestamp:
May 19, 2014, 9:47:35 AM (5 years ago)
Author:
fil@…
Message:

par securite, on strip les tags html eventuels des snippets ; comme je n'ai pas trouve comment passer deux options, je vire l'autre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/indexer_fonctions.php

    r82572 r82575  
    9797    $sq
    9898        ->select('*')
    99         ->select("SNIPPET(content, " . $sq->quote($recherche . ($tag ? " $tag" : '')) . ", 'limit=200') AS snippet")
     99        ->select("SNIPPET(content, " . $sq->quote($recherche . ($tag ? " $tag" : '')) . ", 'html_strip_mode=strip') AS snippet")
    100100        ->from($index)
    101101        ->facet("properties.authors ORDER BY COUNT(*) DESC")
Note: See TracChangeset for help on using the changeset viewer.