summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpost_bug.cgi2
-rwxr-xr-xprocess_bug.cgi2
2 files changed, 2 insertions, 2 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 42e550fbd..c04e34db0 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -124,7 +124,7 @@ if ($::FORM{'assigned_to'} eq "") {
"WHERE program=$sql_product AND value=$sql_component");
$::FORM{'assigned_to'} = FetchOneColumn();
} else {
- $::FORM{'assigned_to'} = DBNameToIdAndCheck($::FORM{'assigned_to'});
+ $::FORM{'assigned_to'} = DBNameToIdAndCheck(trim($::FORM{'assigned_to'}));
}
my @bug_fields = ("product", "version", "rep_platform",
diff --git a/process_bug.cgi b/process_bug.cgi
index 8356c76a5..e64cdac76 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -599,7 +599,7 @@ SWITCH: for ($::FORM{'knob'}) {
intentionally cleared out the \"Reassign bug to\"
field, " . Param("browserbugmessage"));
}
- my $newid = DBNameToIdAndCheck($::FORM{'assigned_to'});
+ my $newid = DBNameToIdAndCheck(trim($::FORM{'assigned_to'}));
$::query .= "assigned_to = $newid";
last SWITCH;
};