diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-11-04 03:33:26 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-11-04 03:33:26 +0000 |
commit | d13943e245403e046168c921a57c13f08bfc6ca9 (patch) | |
tree | fa0c1dff80886d6436e2a9afe81438f366ac1493 | |
parent | 4fa64b57c2269e462e33c582223c81f9105fca06 (diff) | |
download | brdo-d13943e245403e046168c921a57c13f08bfc6ca9.tar.gz brdo-d13943e245403e046168c921a57c13f08bfc6ca9.tar.bz2 |
Fixing bad UTF-8.
-rw-r--r-- | modules/search.module | 6 | ||||
-rw-r--r-- | modules/search/search.module | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/search.module b/modules/search.module index 1c91be379..7bddc7285 100644 --- a/modules/search.module +++ b/modules/search.module @@ -409,7 +409,7 @@ function search_index($sid, $type, $text) { function do_search($keys, $type, $join = '', $where = '1') { // Note, we replace the wildcards with U+FFFD (Replacement character) to pass // through the keyword extractor. - $keys = str_replace('*', '�', $keys); + $keys = str_replace('*', '�', $keys); // Split into words $keys = search_keywords_split($keys); @@ -425,9 +425,9 @@ function do_search($keys, $type, $join = '', $where = '1') { if (string_length($word) < variable_get('remove_short', 3)) { continue; } - if (strpos($word, '�') !== false) { + if (strpos($word, '�') !== false) { $words[] = "i.word LIKE '%s'"; - $arguments[] = str_replace('�', '%', $word); + $arguments[] = str_replace('�', '%', $word); } else { $words[] = "i.word = '%s'"; diff --git a/modules/search/search.module b/modules/search/search.module index 1c91be379..7bddc7285 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -409,7 +409,7 @@ function search_index($sid, $type, $text) { function do_search($keys, $type, $join = '', $where = '1') { // Note, we replace the wildcards with U+FFFD (Replacement character) to pass // through the keyword extractor. - $keys = str_replace('*', '�', $keys); + $keys = str_replace('*', '�', $keys); // Split into words $keys = search_keywords_split($keys); @@ -425,9 +425,9 @@ function do_search($keys, $type, $join = '', $where = '1') { if (string_length($word) < variable_get('remove_short', 3)) { continue; } - if (strpos($word, '�') !== false) { + if (strpos($word, '�') !== false) { $words[] = "i.word LIKE '%s'"; - $arguments[] = str_replace('�', '%', $word); + $arguments[] = str_replace('�', '%', $word); } else { $words[] = "i.word = '%s'"; |