Bug 183665: Accessing post_bug.cgi directly gives a weird error message and should redirect to enter_bug.cgi instead - Patch by Matt Tasker <mtasker@gmail.com> (based on the original patch from victory <spam@bmo2007.rsz.jp>) r/a=LpSolit

git-svn-id: svn://10.0.0.236/trunk@239399 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com
2007-11-14 22:50:25 +00:00
parent 9d259ecb20
commit 702b8f6c80
2 changed files with 4 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ sub get_login_info {
my $username = trim($cgi->param("Bugzilla_login"));
my $password = $cgi->param("Bugzilla_password");
$cgi->delete('Bugzilla_login', 'Bugzilla_password');
$cgi->delete('Bugzilla_login', 'Bugzilla_password', 'GoAheadAndLogIn');
if (!defined $username || !defined $password) {
return { failure => AUTH_NODATA };

View File

@@ -53,6 +53,9 @@ my $vars = {};
# Main Script
######################################################################
# redirect to enter_bug if no field is passed.
print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi') unless $cgi->param();
# Detect if the user already used the same form to submit a bug
my $token = trim($cgi->param('token'));
if ($token) {