summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index e6b77f8ea..6d6ed746c 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -55,7 +55,10 @@ my $vars = {};
######################################################################
# redirect to enter_bug if no field is passed.
-print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi') unless $cgi->param();
+unless ($cgi->param()) {
+ print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi');
+ exit;
+}
# Detect if the user already used the same form to submit a bug
my $token = trim($cgi->param('token'));