[open-ils-commits] r10805 - in trunk/Open-ILS:
src/perlmods/OpenILS/Application/Search web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 9 11:34:03 EDT 2008
Author: dbs
Date: 2008-10-09 11:34:00 -0400 (Thu, 09 Oct 2008)
New Revision: 10805
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
trunk/Open-ILS/web/opac/skin/default/js/search_bar.js
Log:
Move search query input cleansing to the server side
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-09 13:56:31 UTC (rev 10804)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-09 15:34:00 UTC (rev 10805)
@@ -464,7 +464,7 @@
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
Modified: trunk/Open-ILS/web/opac/skin/default/js/search_bar.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/search_bar.js 2008-10-09 13:56:31 UTC (rev 10804)
+++ trunk/Open-ILS/web/opac/skin/default/js/search_bar.js 2008-10-09 15:34:00 UTC (rev 10805)
@@ -56,11 +56,6 @@
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;
More information about the open-ils-commits
mailing list