From: Dobrica Pavlinusic Date: Thu, 15 Dec 2016 08:25:41 +0000 (+0100) Subject: strip whitespaces around query which confuse parser X-Git-Url: http://git.rot13.org/?p=Biblio-Z3950.git;a=commitdiff_plain;h=9eb0be3be7dd442f6a7e1eaf398106cebf2c0728 strip whitespaces around query which confuse parser --- diff --git a/CROSBI.pm b/CROSBI.pm index 199484d..c6651a0 100644 --- a/CROSBI.pm +++ b/CROSBI.pm @@ -58,6 +58,9 @@ sub search { die "need query" unless defined $query; + $query =~ s/^\s+//; + $query =~ s/\s+$//; + my $table = lc $self->{database}; $table =~ s/^crosbi-//g;