From 7084639bb653b1684638c272c4da3d62de1f702b Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sat, 13 Oct 2001 04:33:21 +0000 Subject: 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 --- CGI.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index 9beaaa3aa..f93c0601b 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| -- cgit v1.2.3-24-g4f1b