[ 961069 ] BUG and FIX: search doesn't work with some UTF-8 chars
Moves the strtolower() on the input search terms into Language::stripForSearch()
where the correct version already exists for LanguageUtf8.
$lc = SearchEngine::legalSearchChars() . "()";
$q = preg_replace( "/([()])/", " \\1 ", $this->mUsertext );
$q = preg_replace( "/\\s+/", " ", $q );
- $w = explode( " ", strtolower( trim( $q ) ) );
+ $w = explode( " ", trim( $q ) );
$last = $cond = "";
foreach ( $w as $word ) {
# Some languages have special punctuation to strip out
# or characters which need to be converted for MySQL's
# indexing to grok it correctly. Make such changes here.
- return $in;
+ return strtolower( $in );
}
function firstChar( $s ) {