---
 admin/preferences.pl |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/admin/preferences.pl b/admin/preferences.pl
index b1ad005..79ab478 100755
--- a/admin/preferences.pl
+++ b/admin/preferences.pl
@@ -297,7 +297,8 @@ my @TABS;
 if ( $op eq 'search' ) {
     my $searchfield = $input->param( 'searchfield' );
 
-    $searchfield =~ s/[^a-zA-Z0-9_ -]//g;
+    $searchfield =~ s/^\s+//;
+    $searchfield =~ s/\s+$//;
 
     $template->param( searchfield => $searchfield );
 
-- 
1.7.9.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to