From efc7f31043b10d453f95357b4f47633c7561f763 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 6 Oct 2017 09:53:27 +0000 Subject: [PATCH] add url encoding to filter values - fixing #3174 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@49290 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../src/app/searchPages/searchUtils/searchPage.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts index 55bba1ef..f9ab0cc6 100644 --- a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts +++ b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts @@ -122,7 +122,7 @@ export class SearchPageComponent { var allFqs = ""; this.queryParameters = new Map(); - + for(var i=0; i< this.refineFields.length ; i++){ var filterId = this.refineFields[i]; @@ -136,7 +136,7 @@ export class SearchPageComponent { countvalues++; var paramId = this.fieldIdsMap[filterId].param; // parameters+='&' + paramId+ '='+ value;//+"&" + this.fieldIdsMap[paramId].operator + "="+((countvalues == 1)?"and":"or"); - fq+=(fq.length > 0 ? " " + "or" + " ":"" ) + filterId +" exact " +value;// StringUtils.quote(value) ; + fq+=(fq.length > 0 ? " " + "or" + " ":"" ) + filterId +" exact " +StringUtils.URIEncode(value); } if(countvalues > 0){ fq="&fq="+fq;