projects
/
Biblio-Z3950.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6f686b0
)
strip whitespaces around query which confuse parser
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 15 Dec 2016 08:25:41 +0000
(09:25 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 15 Dec 2016 08:25:41 +0000
(09:25 +0100)
CROSBI.pm
patch
|
blob
|
history
diff --git
a/CROSBI.pm
b/CROSBI.pm
index
199484d
..
c6651a0
100644
(file)
--- 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;