From: justdave%syndicomm.com <> Date: Sat, 13 Oct 2001 04:33:21 +0000 (+0000) Subject: Fix for bug 101056: multiple form values of the same name were not getting correctly... X-Git-Tag: bugzilla-2.14.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7084639bb653b1684638c272c4da3d62de1f702b;p=thirdparty%2Fbugzilla.git Fix for bug 101056: multiple form values of the same name were not getting correctly stashed if the user had to log in as part of a form submit. Patch by Myk Melez r= gerv, justdave --- diff --git a/CGI.pl b/CGI.pl index 9beaaa3aa1..f93c0601b5 100644 --- a/CGI.pl +++ b/CGI.pl @@ -1065,7 +1065,15 @@ Content-type: text/html # (except for Bugzilla_login and Bugzilla_password which we # already added as text fields above). foreach my $i ( grep( $_ !~ /^Bugzilla_/ , keys %::FORM ) ) { + if (scalar(@{$::MFORM{$i}}) > 1) { + # This field has multiple values; add each one separately. + foreach my $val (@{$::MFORM{$i}}) { + print qq|\n|; + } + } else { + # This field has a single value; add it. print qq|\n|; + } } print qq|