roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghu...@apache.org
Subject svn commit: r1485980 - /roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java
Date Fri, 24 May 2013 09:11:52 GMT
Author: ghuber
Date: Fri May 24 09:11:52 2013
New Revision: 1485980

URL: http://svn.apache.org/r1485980
Log:
Escape search string.

Modified:
    roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java

Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java?rev=1485980&r1=1485979&r2=1485980&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java
(original)
+++ roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java
Fri May 24 09:11:52 2013
@@ -121,7 +121,7 @@ public class SearchOperation extends Rea
             multiParser.setDefaultOperator(MultiFieldQueryParser.Operator.AND);
 
             // Create a query object out of our term
-            Query query = multiParser.parse(term);
+            Query query = multiParser.parse(MultiFieldQueryParser.escape(term));
 
             Term tUsername = IndexUtil.getTerm(FieldConstants.WEBSITE_HANDLE,
                     websiteHandle);



Mime
View raw message