]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Correcting the previous backout attempt, apparrently typoed a version number last...
authorjustdave%syndicomm.com <>
Fri, 17 Oct 2003 09:07:55 +0000 (09:07 +0000)
committerjustdave%syndicomm.com <>
Fri, 17 Oct 2003 09:07:55 +0000 (09:07 +0000)
process_bug.cgi

index 5608c0528dd2eea216930b13d8113a493946166c..e504fd7ea9f3b13c1a335a542eb6907043b8ad12 100755 (executable)
@@ -842,15 +842,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;
         }
@@ -858,7 +858,7 @@ if (defined $::FORM{newcc} || defined $::FORM{removecc} || defined $::FORM{massc
 }
 
 
-CheckFormFieldDefined(\%::FORM, 'knob', "check that \"Leave as...\" was selected.");
+CheckFormFieldDefined(\%::FORM, 'knob');
 SWITCH: for ($::FORM{'knob'}) {
     /^none$/ && do {
         last SWITCH;