From: David Cramer Date: Thu, 19 Apr 2012 14:04:24 +0000 (+0000) Subject: Patch from Arun Bharadwaj to strip quotes from search query strings X-Git-Tag: release/1.79.1~6^2~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beb5807e169c8009b5f30246afdfa2d666ab7e4c;p=docbook-dsssl Patch from Arun Bharadwaj to strip quotes from search query strings --- diff --git a/xsl/webhelp/template/content/search/nwSearchFnt.js b/xsl/webhelp/template/content/search/nwSearchFnt.js index ae740df67..09ca1bcd9 100644 --- a/xsl/webhelp/template/content/search/nwSearchFnt.js +++ b/xsl/webhelp/template/content/search/nwSearchFnt.js @@ -50,6 +50,7 @@ function Verifie(searchForm) { //-------------------------OXYGEN PATCH START------------------------- searchTextField = trim(document.searchForm.textToSearch.value); + searchTextField = searchTextField.replace(/['"]/g,''); var expressionInput = searchTextField; $.cookie('textToSearch', expressionInput); //-------------------------OXYGEN PATCH END-------------------------