Permalink
Browse files

[#16838413] Fix errant whitespace remover from returns.pl

This section should just trim whitespace from the ends
of the barcode, not remove all whitespace altogether.
  • Loading branch information...
ctfliblime committed Dec 20, 2011
1 parent 3bb60c0 commit d9e11fcce0a8bb33e863b006b913e22a89a35625
Showing with 1 addition and 1 deletion.
  1. +1 −1 circ/returns.pl
View
@@ -218,7 +218,7 @@ =head1 returns.pl
my $today = C4::Dates->new();
my $today_iso = $today->output('iso');
my $dropboxdate = $calendar->addDate($today, -1);
-$barcode =~ s/^\s*|\s+//g;
+$barcode =~ s/^\s+|\s+$//g;
if ($ENV{HTTP_REFERER} =~ /$ENV{SCRIPT_NAME}/ && !$dotransfer && !$canceltransfer) {
if ($dropboxmode) {

0 comments on commit d9e11fc

Please sign in to comment.