From b7f63d0ce20730a9d786a5c6dc0139f55bd7aacd Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 20 Mar 2009 11:52:26 +1300 Subject: [PATCH] fix to remove leading/trailing whitespace from entered barcode. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- circ/circulation.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 631df50dca..d89c637095 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -112,6 +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 = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter')); my $stickyduedate = $query->param('stickyduedate'); -- 2.20.1