summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 5bb180c5a..82e9cb988 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -582,15 +582,15 @@ if (defined $::FORM{newcc} || defined $::FORM{removecc} || defined $::FORM{massc
}
if ($cc_add) {
- $cc_add =~ s/^[\s,]+//; # Remove leading delimiters.
- foreach my $person ( split(/[\s,]+/, $cc_add) ) {
+ $cc_add =~ s/[\s,]+/ /g; # Change all delimiters to a single space
+ foreach my $person ( split(" ", $cc_add) ) {
my $pid = DBNameToIdAndCheck($person);
$cc_add{$pid} = $person;
}
}
if ($cc_remove) {
- $cc_remove =~ s/^[\s,]+//; # Remove leading delimiters.
- foreach my $person ( split(/[\s,]+/, $cc_remove) ) {
+ $cc_remove =~ s/[\s,]+/ /g; # Change all delimiters to a single space
+ foreach my $person ( split(" ", $cc_remove) ) {
my $pid = DBNameToIdAndCheck($person);
$cc_remove{$pid} = $person;
}