X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fsearch%2FSearchDatabase.php;h=1d7a4a338ec6860c343760c1dc22a746fb6002b3;hb=7ececd89751310a7d46310b10ca80d5a0aa77528;hp=d51e525b606841d1e78cb4672f0cb8fb11b1ccff;hpb=b722dc686b8e95e05dc8492539ed7eab1687e470;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchDatabase.php b/includes/search/SearchDatabase.php index d51e525b60..1d7a4a338e 100644 --- a/includes/search/SearchDatabase.php +++ b/includes/search/SearchDatabase.php @@ -53,7 +53,10 @@ class SearchDatabase extends SearchEngine { * @return string */ protected function filter( $text ) { - $lc = $this->legalSearchChars(); + // List of chars allowed in the search query. + // This must include chars used in the search syntax. + // Usually " (phrase) or * (wildcards) if supported by the engine + $lc = $this->legalSearchChars( self::CHARS_ALL ); return trim( preg_replace( "/[^{$lc}]/", " ", $text ) ); } }