From e1efa13a17988186061d0e9337d10d8de4aa8923 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 11 May 2009 11:39:19 -0500 Subject: [PATCH] tweak removal of whitespace from barcodes Per suggestion from Joe Atzberger, match on \s instead of [ \t] for stripping leading and trailing whitespace from barcode lookups. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index d89c637095..fc5d4e500d 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -112,7 +112,7 @@ if (C4::Context->preference("AutoLocation") ne 1) { # FIXME: string comparison t } my $barcode = $query->param('barcode') || ''; -$barcode =~ s/^[ \t]+|[ \t]+$//g; # remove leading/trailing whitespace +$barcode =~ s/^\s*|\s*$//g; # remove leading/trailing whitespace $barcode = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter')); my $stickyduedate = $query->param('stickyduedate'); -- 2.20.1