]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-05-03 20:53:03 by doogie]
authordoogie <>
Sun, 4 May 2003 03:53:03 +0000 (19:53 -0800)
committerdoogie <>
Sun, 4 May 2003 03:53:03 +0000 (19:53 -0800)
Trim trailing whitespace from pseudoheader values.

debian/changelog
scripts/process.in

index 1cc376fe54039bf352aea43719bbb5b9507647b8..4ce9ef96a20ea6c87c7b6a83a972ecbbddce695f 100644 (file)
@@ -16,6 +16,7 @@ debbugs (2.4.1) UNRELEASED; urgency=low
   * Adam Heath:
     - Convert all code to use global read/write functions, instead of having
       it duplicated everwhere.
+    - Trim trailing whitespace from pseudoheader values.  Closes: #153590.
 
  -- Colin Watson <cjwatson@debian.org>  Mon, 25 Nov 2002 03:50:20 +0000
 
index 2d320a01ad2617b5b1c7c2f5001fe6daf90bafc3..abd721678697c0295f9d36240410737bec094f31 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: process.in,v 1.66 2003/05/03 20:01:20 doogie Exp $
+# $Id: process.in,v 1.67 2003/05/03 20:53:03 doogie Exp $
 #
 # Usage: process nn
 # Temps:  incoming/Pnn
@@ -132,6 +132,7 @@ for my $phline (@bodylines)
 {
     last if $phline !~ m/^([\w]+):\s*(\S.*)/;
     my ($fn, $fv) = ($1, $2);
+    $fv =~ s/\s*$//
     print DEBUG ">$fn|$fv|\n";
     $fn = lc $fn;
     $fv = lc $fv;