From: bbaetz%student.usyd.edu.au <> Date: Sun, 16 Jun 2002 12:28:16 +0000 (+0000) Subject: Bug 151369 - need to trim the entered assignee's email address X-Git-Tag: bugzilla-2.16~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c650c7f11e099d7a7200d62131da46273fa83cb1;p=thirdparty%2Fbugzilla.git Bug 151369 - need to trim the entered assignee's email address r=mattyt x2 --- diff --git a/post_bug.cgi b/post_bug.cgi index 42e550fbda..c04e34db0f 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 8356c76a59..e64cdac76d 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; };