diff options
author | justdave%syndicomm.com <> | 2001-06-08 03:26:37 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-06-08 03:26:37 +0000 |
commit | 982869a3e0b7246d9d05d040716fc1eedffe4e44 (patch) | |
tree | 6a3736bfecf11687c5f24a95b5c990b4a5bb4023 /process_bug.cgi | |
parent | 4e5f26e8d6e9ea7441bb05f477e0c67523f3a7e0 (diff) | |
download | bugs-982869a3e0b7246d9d05d040716fc1eedffe4e44.tar bugs-982869a3e0b7246d9d05d040716fc1eedffe4e44.tar.gz bugs-982869a3e0b7246d9d05d040716fc1eedffe4e44.tar.bz2 bugs-982869a3e0b7246d9d05d040716fc1eedffe4e44.tar.xz bugs-982869a3e0b7246d9d05d040716fc1eedffe4e44.zip |
Fix for bug 15980: Password is no longer shown in the location bar on the first page you load after logging in.
Patch by Dave Miller <justdave@syndicomm.com>
r= jake@acutex.net
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 81f6846b8..1b02b7b0c 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -724,8 +724,14 @@ The changes made were: $::FORM{'delta_ts'} = $delta_ts; print "<li><form method=post>"; foreach my $i (keys %::FORM) { - my $value = value_quote($::FORM{$i}); - print qq{<input type=hidden name="$i" value="$value">\n}; + # Make sure we don't include the username/password fields in the + # HTML. If cookies are off, they'll have to reauthenticate after + # hitting "submit changes anyway". + # see http://bugzilla.mozilla.org/show_bug.cgi?id=15980 + if ($i !~ /^(Bugzilla|LDAP)_(login|password)$/) { + my $value = value_quote($::FORM{$i}); + print qq{<input type=hidden name="$i" value="$value">\n}; + } } print qq{<input type=submit value="Submit my changes anyway">\n}; print " This will cause all of the above changes to be overwritten"; |