From 818db0f62af189a4d9fcfc03c4cccf1014a1bc23 Mon Sep 17 00:00:00 2001 From: "pavel.stastny@gmail.com" Date: Thu, 29 Jan 2015 12:46:31 +0100 Subject: [PATCH] Issue #204 --- .../Kramerius/views/inc/details/tabs/AltoSupportViewObject.java | 1 + 1 file changed, 1 insertion(+) diff --git a/search/src/java/cz/incad/Kramerius/views/inc/details/tabs/AltoSupportViewObject.java b/search/src/java/cz/incad/Kramerius/views/inc/details/tabs/AltoSupportViewObject.java index d7a5f9de5b..aaedb5b948 100644 --- a/search/src/java/cz/incad/Kramerius/views/inc/details/tabs/AltoSupportViewObject.java +++ b/search/src/java/cz/incad/Kramerius/views/inc/details/tabs/AltoSupportViewObject.java @@ -80,6 +80,7 @@ public String getSearchQuery() { HttpServletRequest request = this.requestProvider.get(); if (request.getParameterMap().containsKey("q")) { String par = request.getParameter("q"); + par = par.replace("'", "\\'"); return "'"+par+"'"; } else return "null"; }