From 95909b0d815d3c89d3ee664ee078a6a22368eded 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 --- circ/circulation.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index d51f2d3fcf..1c6fb611b6 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.11.4.GIT