diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index 70e3b20fc..d025b578c 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -804,7 +804,7 @@ class commentModel extends comment case 'content' : if($search_keyword) { - $search_keyword = str_replace(' ', '%', $search_keyword); + $search_keyword = trim(utf8_normalize_spaces($search_keyword)); } $args->s_content = $search_keyword; @@ -960,7 +960,7 @@ class commentModel extends comment case 'content' : if($search_keyword) { - $search_keyword = str_replace(' ', '%', $search_keyword); + $search_keyword = trim(utf8_normalize_spaces($search_keyword)); } $args->s_content = $search_keyword; diff --git a/modules/comment/queries/getTotalCommentCountByGroupStatus.xml b/modules/comment/queries/getTotalCommentCountByGroupStatus.xml index 6516a1f64..7805a5654 100644 --- a/modules/comment/queries/getTotalCommentCountByGroupStatus.xml +++ b/modules/comment/queries/getTotalCommentCountByGroupStatus.xml @@ -11,7 +11,7 @@ - + diff --git a/modules/comment/queries/getTotalCommentCountWithinMemberByGroupStatus.xml b/modules/comment/queries/getTotalCommentCountWithinMemberByGroupStatus.xml index dabd55ab1..9d72bc06b 100644 --- a/modules/comment/queries/getTotalCommentCountWithinMemberByGroupStatus.xml +++ b/modules/comment/queries/getTotalCommentCountWithinMemberByGroupStatus.xml @@ -12,7 +12,7 @@ - + diff --git a/modules/comment/queries/getTotalCommentList.xml b/modules/comment/queries/getTotalCommentList.xml index cffd06614..17590bb39 100644 --- a/modules/comment/queries/getTotalCommentList.xml +++ b/modules/comment/queries/getTotalCommentList.xml @@ -22,7 +22,7 @@ - + diff --git a/modules/comment/queries/getTotalCommentListWithinMember.xml b/modules/comment/queries/getTotalCommentListWithinMember.xml index e01d28d08..00705ace5 100644 --- a/modules/comment/queries/getTotalCommentListWithinMember.xml +++ b/modules/comment/queries/getTotalCommentListWithinMember.xml @@ -16,7 +16,7 @@ - + diff --git a/modules/document/document.model.php b/modules/document/document.model.php index 294962447..98b6f1b9a 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -1317,7 +1317,7 @@ class documentModel extends document case 'tag' : case 'title_content' : $use_division = true; - $search_keyword = str_replace(' ', '%', $search_keyword); + $search_keyword = trim(utf8_normalize_spaces($search_keyword)); if($search_target == 'title_content') { $args->s_title = $search_keyword; diff --git a/modules/document/queries/getDocumentCount.xml b/modules/document/queries/getDocumentCount.xml index a33ce2773..9edba2211 100644 --- a/modules/document/queries/getDocumentCount.xml +++ b/modules/document/queries/getDocumentCount.xml @@ -13,8 +13,8 @@ - - + + diff --git a/modules/document/queries/getDocumentList.xml b/modules/document/queries/getDocumentList.xml index a9f7de549..47f71318f 100644 --- a/modules/document/queries/getDocumentList.xml +++ b/modules/document/queries/getDocumentList.xml @@ -17,8 +17,8 @@ - - + + diff --git a/modules/document/queries/getDocumentListWithExtraVars.xml b/modules/document/queries/getDocumentListWithExtraVars.xml index 59e3f876a..db2342f15 100644 --- a/modules/document/queries/getDocumentListWithExtraVars.xml +++ b/modules/document/queries/getDocumentListWithExtraVars.xml @@ -25,8 +25,8 @@ - - + +