From 35594613ea01a868e958663dc211bce021df23f4 Mon Sep 17 00:00:00 2001 From: Kazutaka Miyasaka Date: Tue, 14 Dec 2010 01:52:20 +0900 Subject: Fixed Asian search term handling in ft_snippet_re_preprocess() --- inc/fulltext.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc') diff --git a/inc/fulltext.php b/inc/fulltext.php index 59a9c1d96..457ad1baf 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -396,6 +396,11 @@ function ft_snippet($id,$highlight){ * Wraps a search term in regex boundary checks. */ function ft_snippet_re_preprocess($term) { + // do not process asian terms where word boundaries are not explicit + if(preg_match('/'.IDX_ASIAN.'/u',$term)){ + return $term; + } + if(substr($term,0,2) == '\\*'){ $term = substr($term,2); }else{ -- cgit v1.2.3