From: miker Date: Tue, 16 Feb 2010 21:36:38 +0000 (+0000) Subject: protect against just-spaces in the remaining query blob X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7c3907b4bb54649da86b973ceedfd73ce0ec3bca;p=Evergreen.git protect against just-spaces in the remaining query blob git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15559 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 5ae0022e35..d834c4d2f9 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