Bug 151369 - need to trim the entered assignee's email address

r=mattyt x2
parent 9748a9f9
...@@ -124,7 +124,7 @@ if ($::FORM{'assigned_to'} eq "") { ...@@ -124,7 +124,7 @@ if ($::FORM{'assigned_to'} eq "") {
"WHERE program=$sql_product AND value=$sql_component"); "WHERE program=$sql_product AND value=$sql_component");
$::FORM{'assigned_to'} = FetchOneColumn(); $::FORM{'assigned_to'} = FetchOneColumn();
} else { } else {
$::FORM{'assigned_to'} = DBNameToIdAndCheck($::FORM{'assigned_to'}); $::FORM{'assigned_to'} = DBNameToIdAndCheck(trim($::FORM{'assigned_to'}));
} }
my @bug_fields = ("product", "version", "rep_platform", my @bug_fields = ("product", "version", "rep_platform",
......
...@@ -599,7 +599,7 @@ SWITCH: for ($::FORM{'knob'}) { ...@@ -599,7 +599,7 @@ SWITCH: for ($::FORM{'knob'}) {
intentionally cleared out the \"Reassign bug to\" intentionally cleared out the \"Reassign bug to\"
field, " . Param("browserbugmessage")); field, " . Param("browserbugmessage"));
} }
my $newid = DBNameToIdAndCheck($::FORM{'assigned_to'}); my $newid = DBNameToIdAndCheck(trim($::FORM{'assigned_to'}));
$::query .= "assigned_to = $newid"; $::query .= "assigned_to = $newid";
last SWITCH; last SWITCH;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment