From 8df17a3184b753a922ee586758fd9b4e48196227 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 9 Oct 2008 15:34:00 +0000 Subject: [PATCH] Move search query input cleansing to the server side git-svn-id: svn://svn.open-ils.org/ILS/trunk@10805 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 2 +- Open-ILS/web/opac/skin/default/js/search_bar.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index c36f165edc..d2b838e191 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -464,7 +464,7 @@ sub multiclass_query { my $orig_query = $query; $query =~ s/\+/ /go; - $query =~ s/'//go; + $query =~ s/'/ /go; $query =~ s/^\s+//go; # convert convenience classes (e.g. kw for keyword) to the full class name diff --git a/Open-ILS/web/opac/skin/default/js/search_bar.js b/Open-ILS/web/opac/skin/default/js/search_bar.js index 5b6cccbb77..37dc49eaf6 100644 --- a/Open-ILS/web/opac/skin/default/js/search_bar.js +++ b/Open-ILS/web/opac/skin/default/js/search_bar.js @@ -56,11 +56,6 @@ function searchBarSubmit(isFilterSort) { if(!text || text == "") return; - text = text.replace(/'/g,' '); - text = text.replace(/\\/g,' '); - text = text.replace(/^\s*/,''); - text = text.replace(/\s*$/,''); - var d = (newSearchDepth != null) ? newSearchDepth : depthSelGetDepth(); if(isNaN(d)) d = 0; -- 2.43.2