diff options
author | justdave%syndicomm.com <> | 2001-10-13 04:33:21 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-10-13 04:33:21 +0000 |
commit | 7084639bb653b1684638c272c4da3d62de1f702b (patch) | |
tree | 5a7285039b18689941f5c150350a3120672552ad | |
parent | f74dbc9daa8343db3df6855b2f48ddb6357ca626 (diff) | |
download | bugs-7084639bb653b1684638c272c4da3d62de1f702b.tar bugs-7084639bb653b1684638c272c4da3d62de1f702b.tar.gz bugs-7084639bb653b1684638c272c4da3d62de1f702b.tar.bz2 bugs-7084639bb653b1684638c272c4da3d62de1f702b.tar.xz bugs-7084639bb653b1684638c272c4da3d62de1f702b.zip |
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 <myk@mozilla.org>
r= gerv, justdave
-rw-r--r-- | CGI.pl | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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|<input type="hidden" name="$i" value="@{[value_quote($val)]}">\n|; + } + } else { + # This field has a single value; add it. print qq|<input type="hidden" name="$i" value="@{[value_quote($::FORM{$i})]}">\n|; + } } print qq| |