forward porting r15559: protect against just-spaces in the remaining query blob
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 16 Feb 2010 21:38:02 +0000 (21:38 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 16 Feb 2010 21:38:02 +0000 (21:38 +0000)
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

index 31470a3..ac812a6 100644 (file)
@@ -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