]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 183665: Accessing post_bug.cgi directly gives a weird error message and should...
authorlpsolit%gmail.com <>
Thu, 15 Nov 2007 04:50:24 +0000 (04:50 +0000)
committerlpsolit%gmail.com <>
Thu, 15 Nov 2007 04:50:24 +0000 (04:50 +0000)
Bugzilla/Auth/Login/CGI.pm
post_bug.cgi

index 2a61a54f77f4e496ebd0bf1eb4ae5d6373b73e6d..980e2712390062461e5cc97c7598cd79414f7129 100644 (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 };
index 2ef2dcde59054b4f6658bceec7e72fbe52673742..0f23e7d98be2570e6f7fc702d2de9ce9cb38b82f 100755 (executable)
@@ -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) {