summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-04-10 08:18:16 +0200
committerlpsolit%gmail.com <>2005-04-10 08:18:16 +0200
commitc15ee7a4d566c9e4911ac0cc0e94edb8d357709d (patch)
tree5c84986f432a6da31e277c95e0da72bf9c8b3608 /post_bug.cgi
parentadd735039c2d148077d5a7baca1a36f50f5bfab3 (diff)
downloadbugzilla-c15ee7a4d566c9e4911ac0cc0e94edb8d357709d.tar.gz
bugzilla-c15ee7a4d566c9e4911ac0cc0e94edb8d357709d.tar.xz
Bug 225818: %FORM, %MFORM, and %COOKIE need to go away, in favor of the CGI methods - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit a=myk
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 218e3aaa7..0233fad83 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -111,7 +111,8 @@ my $component_id = get_component_id($product_id,
scalar($cgi->param('component')));
$component_id || ThrowUserError("require_component");
-if (!$cgi->param('short_desc') || trim($cgi->param('short_desc')) eq "") {
+if (!defined $cgi->param('short_desc')
+ || trim($cgi->param('short_desc')) eq "") {
ThrowUserError("require_summary");
}
@@ -163,7 +164,7 @@ if (Param("useqacontact")) {
if (UserInGroup("editbugs") || UserInGroup("canconfirm")) {
# Default to NEW if the user hasn't selected another status
- if (!$cgi->param('bug_status')) {
+ if (!defined $cgi->param('bug_status')) {
$cgi->param(-name => 'bug_status', -value => "NEW");
}
} else {
@@ -361,7 +362,6 @@ if (UserInGroup(Param("timetrackinggroup")) &&
if ((UserInGroup(Param("timetrackinggroup"))) && ($cgi->param('deadline'))) {
Bugzilla::Util::ValidateDate($cgi->param('deadline'), 'YYYY-MM-DD');
- my $str = $cgi->param('deadline');
$sql .= SqlQuote($cgi->param('deadline'));
} else {
$sql .= "NULL";