summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-11-15 05:50:24 +0100
committerlpsolit%gmail.com <>2007-11-15 05:50:24 +0100
commitec38a93e110be22f7316871994f91dc53712bcd2 (patch)
tree2c0a767ed7282f85b3fe92c4fb6b9c1f72389c9d /post_bug.cgi
parent297024e7c3f8792a39ac05db857c0aeb6069a794 (diff)
downloadbugzilla-ec38a93e110be22f7316871994f91dc53712bcd2.tar.gz
bugzilla-ec38a93e110be22f7316871994f91dc53712bcd2.tar.xz
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
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi3
1 files changed, 3 insertions, 0 deletions
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) {