diff options
-rw-r--r-- | Bugzilla/Auth/Login/CGI.pm | 2 | ||||
-rwxr-xr-x | post_bug.cgi | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Login/CGI.pm b/Bugzilla/Auth/Login/CGI.pm index 2a61a54f7..980e27123 100644 --- a/Bugzilla/Auth/Login/CGI.pm +++ b/Bugzilla/Auth/Login/CGI.pm @@ -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 }; diff --git a/post_bug.cgi b/post_bug.cgi index 2ef2dcde5..0f23e7d98 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -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) { |