From 89aebbf6bf7cf73f9ae51d295aee68205c68e731 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Sun, 16 Jun 2002 12:26:50 +0000 Subject: Bug 151369 - need to trim the entered assignee's email address r=mattyt x2 --- post_bug.cgi | 2 +- process_bug.cgi | 2 +- 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; }; -- cgit v1.2.3-24-g4f1b