Fix for bug 95857: process_bugs.cgi sees blank address in cc: line (would show up as __UNKNOWN__)

Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101390 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%syndicomm.com
2001-08-18 01:49:02 +00:00
parent 2049bb32c3
commit 1136151446

View File

@@ -582,17 +582,15 @@ if (defined $::FORM{newcc} || defined $::FORM{removecc} || defined $::FORM{massc
}
if ($cc_add) {
foreach my $person (split(/[ ,]/, $cc_add)) {
# Ignore blanks
next unless $person;
$cc_add =~ s/^[\s,]+//; # Remove leading delimiters.
foreach my $person ( split(/[\s,]+/, $cc_add) ) {
my $pid = DBNameToIdAndCheck($person);
$cc_add{$pid} = $person;
}
}
if ($cc_remove) {
foreach my $person (split(/[ ,]/, $cc_remove)) {
# Ignore blanks
next unless $person;
$cc_remove =~ s/^[\s,]+//; # Remove leading delimiters.
foreach my $person ( split(/[\s,]+/, $cc_remove) ) {
my $pid = DBNameToIdAndCheck($person);
$cc_remove{$pid} = $person;
}