From bfe81b6844d87a79186f24813735874c80dcf6a7 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Mon, 22 Oct 2007 03:19:52 -0500 Subject: [PATCH] removing [ and ] in query hilighting otherwise, we have a regexp error 4 lines later Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9b21dfd009..d32a3d8d1a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -962,7 +962,7 @@ sub searchResults { #warn "term: $term"; my $old_term = $term; if ( length($term) > 3 ) { - $term =~ s/(.*=|\)|\(|\+|\.|\?)//g; + $term =~ s/(.*=|\)|\(|\+|\.|\?|\[|\])//g; #FIXME: is there a better way to do this? $oldbiblio->{'title'} =~ s/$term/$&<\/span>/gi; -- 2.39.5