From c58f8ca318425bc003002e86850e5c2ef1870079 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 16 Feb 2010 21:38:02 +0000 Subject: [PATCH] forward porting r15559: protect against just-spaces in the remaining query blob git-svn-id: svn://svn.open-ils.org/ILS/trunk@15561 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 31470a3a68..ac812a6244 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -624,6 +624,9 @@ sub multiclass_query { } $query .= " $tmp_value"; + $query =~ s/\s+/ /go; + $query =~ s/^\s+//go; + $query =~ s/\s+$//go; if($query) { # This is the front part of the string before any special tokens were -- 2.11.0