bug 4084: remove \r from header line for sake of consistency
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 29 Sep 2010 22:18:16 +0000 (18:18 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 29 Sep 2010 22:18:16 +0000 (18:18 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

offline_circ/process_koc.pl

index 5655f0c..7da7c9d 100755 (executable)
@@ -176,6 +176,7 @@ returns a hashref containing the information from the header.
 sub parse_header_line {
     my $header_line = shift;
     chomp($header_line);
+    $header_line =~ s/\r//g;
 
     my @fields = split( /\t/, $header_line );
     my %header_info = map { split( /=/, $_ ) } @fields;