From: terry%mozilla.org <> Date: Sat, 28 Aug 1999 00:17:29 +0000 (+0000) Subject: Don't use "GET" for a form with a password in the obvious case where X-Git-Tag: bugzilla-2.6~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1242d81546313b9029a2c19635882c6221a3cb3a;p=thirdparty%2Fbugzilla.git Don't use "GET" for a form with a password in the obvious case where we have no other bookmarkable data that we'll want to put in the URL. --- diff --git a/CGI.pl b/CGI.pl index 4555ea8563..abf46a9d5a 100644 --- a/CGI.pl +++ b/CGI.pl @@ -436,7 +436,7 @@ sub confirm_login { $nexturl = $&; } my $method = "POST"; - if (defined $ENV{"REQUEST_METHOD"}) { + if (defined $ENV{"REQUEST_METHOD"} && length($::buffer) > 1) { $method = $ENV{"REQUEST_METHOD"}; } print "