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:
Andrew Hind
2010-04-22 14:39:34 +00:00
parent 4fb2fc7f36
commit ffaa1177a6

View File

@@ -162,6 +162,7 @@ public class KeywordSearch extends DeclarativeWebScript
{
// construct search statement
String[] terms = searchTerms.split(" ");
searchTerms = searchTerms.replaceAll("\"", """);
// Escape special characters in the terms, so that they can't confuse the parser
for (int i=0; i<terms.length; i++)