From 9c63f04d3ea7aae0941845ff29c3e3da6e823925 Mon Sep 17 00:00:00 2001 From: joy <> Date: Mon, 11 Nov 2002 10:19:44 -0800 Subject: [PATCH] [project @ 2002-11-11 10:19:44 by joy] strip off leading and trailing whitespace in the severity --- scripts/process.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/process.in b/scripts/process.in index ca4fb68e..64af4c4e 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: process.in,v 1.55 2002/11/08 14:01:33 ajt Exp $ +# $Id: process.in,v 1.56 2002/11/11 10:19:44 joy Exp $ # # Usage: process nn # Temps: incoming/Pnn @@ -532,6 +532,7 @@ END if (defined($pheader{'severity'}) || defined($pheader{'priority'})) { $s_severity= $pheader{'severity'}; $s_severity= $pheader{'priority'} unless ($s_severity); + $s_severity =~ s/^\s*(.+)\s*$/$1/; if (!grep($_ eq $s_severity, @severities, "$gDefaultSeverity")) { $brokenness.= <