diff options
author | justdave%syndicomm.com <> | 2003-10-17 03:26:09 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-10-17 03:26:09 +0200 |
commit | 7f892832fb89f60f3228d22e393fa6c823be12b6 (patch) | |
tree | 0188138a96abe5af0f736357df23acbfaabf7baa /process_bug.cgi | |
parent | 61ce0b2c0f624e15ed240ef19d46e540949cd4af (diff) | |
download | bugzilla-7f892832fb89f60f3228d22e393fa6c823be12b6.tar.gz bugzilla-7f892832fb89f60f3228d22e393fa6c823be12b6.tar.xz |
Backing out patch from bug 108528 - failed to take i10n concerns into account
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index d3155af33..5608c0528 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -842,15 +842,15 @@ if (defined $::FORM{newcc} || defined $::FORM{removecc} || defined $::FORM{massc } if ($cc_add) { - $cc_add =~ s/[\s,]+/ /g; # Change all delimiters to a single space - foreach my $person ( split(" ", $cc_add) ) { + $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) { - $cc_remove =~ s/[\s,]+/ /g; # Change all delimiters to a single space - foreach my $person ( split(" ", $cc_remove) ) { + $cc_remove =~ s/^[\s,]+//; # Remove leading delimiters. + foreach my $person ( split(/[\s,]+/, $cc_remove) ) { my $pid = DBNameToIdAndCheck($person); $cc_remove{$pid} = $person; } |