[HepData-svn] r1858 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Apr 28 15:37:46 BST 2015


Author: watt
Date: Tue Apr 28 15:37:46 2015
New Revision: 1858

Log:
Convert single quote mark into hex value

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Wed Apr 22 12:36:30 2015	(r1857)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Tue Apr 28 15:37:46 2015	(r1858)
@@ -92,7 +92,8 @@
         } catch(Exception ex){}
         q = q.replace("@","+");
         q = q.replace("_", " ");
-        setSearchString(q.replace("\"", "%22"));
+	//setSearchString(q.replace("\"", "%22"));
+	setSearchString(q.replace("\"", "%22").replace("\'", "%27"));
     }
     public void onActivate(EventContext context) {
         parseContext(context);


More information about the HepData-svn mailing list