@@ -, +, @@ --- offline_circ/service.pl | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) --- a/offline_circ/service.pl +++ a/offline_circ/service.pl @@ -39,9 +39,11 @@ if ($status eq 'ok') { # if authentication is ok $timestamp = $cgi->param('timestamp') || ''; $action = $cgi->param('action') || ''; $barcode = $cgi->param('barcode') || ''; - $barcode =~ s/^\s+|\s+$//; + $barcode =~ s/^\s+//; + $barcode =~ s/\s+$//; $cardnumber = $cgi->param('cardnumber') || ''; - $cardnumber =~ s/^\s+|\s+$//; + $cardnumber =~ s/^\s+//; + $cardnumber =~ s/\s+$//; if ( $cgi->param('pending') eq 'true' ) { # if the 'pending' flag is true, we store the operation in the db instead of directly processing them $result = AddOfflineOperation( --