mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Fix for ALF-226: Open Search with the Speech Marks
- changes to KeywordSearch as suggested - LQP changes already done git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19954 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -162,6 +162,7 @@ public class KeywordSearch extends DeclarativeWebScript
|
|||||||
{
|
{
|
||||||
// construct search statement
|
// construct search statement
|
||||||
String[] terms = searchTerms.split(" ");
|
String[] terms = searchTerms.split(" ");
|
||||||
|
searchTerms = searchTerms.replaceAll("\"", """);
|
||||||
|
|
||||||
// Escape special characters in the terms, so that they can't confuse the parser
|
// Escape special characters in the terms, so that they can't confuse the parser
|
||||||
for (int i=0; i<terms.length; i++)
|
for (int i=0; i<terms.length; i++)
|
||||||
|
Reference in New Issue
Block a user