Author: lektran
Date: Mon Jun 4 23:36:00 2007
New Revision: 544406
URL:
http://svn.apache.org/viewvc?view=rev&rev=544406Log:
Applied fix from trunk for revision: 540008
Modified:
ofbiz/branches/release4.0/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java
Modified: ofbiz/branches/release4.0/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java?view=diff&rev=544406&r1=544405&r2=544406==============================================================================
--- ofbiz/branches/release4.0/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java (original)
+++ ofbiz/branches/release4.0/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java Mon Jun 4 23:36:00 2007
@@ -182,6 +182,9 @@
Set keywords = new TreeSet();
if (str.length() > 0) {
+ // strip off weird characters
+ str = str.replaceAll("\\\302\\\240|\\\240", "\\s");
+
if (forSearch) {
// remove %_*? from separators if is for a search
StringBuffer sb = new StringBuffer(separators);