Contributes to MDL12324 - fixes search failure when using extended chars (non ascii...
authordiml <diml>
Mon, 28 Apr 2008 16:27:41 +0000 (16:27 +0000)
committerdiml <diml>
Mon, 28 Apr 2008 16:27:41 +0000 (16:27 +0000)
search/querylib.php

index 2c5b49cdf50e33a82cf6537b1b87b3e2c18a38ac..9fe0bdc6c01c1a15aa46c4e4ea711b01abe12fbd 100644 (file)
@@ -219,7 +219,7 @@ class SearchQuery {
     private function process_results($all=false) {
         global $USER;
 
-        $term = strtolower($this->term);
+        $term = mb_convert_case($this->term, MB_CASE_LOWER, 'UTF-8');
 
         //experimental - return more results
         $strip_arr = array('author:', 'title:', '+', '-', 'doctype:');