]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151369 - need to trim the entered assignee's email address
authorbbaetz%student.usyd.edu.au <>
Sun, 16 Jun 2002 12:28:16 +0000 (12:28 +0000)
committerbbaetz%student.usyd.edu.au <>
Sun, 16 Jun 2002 12:28:16 +0000 (12:28 +0000)
r=mattyt x2

post_bug.cgi
process_bug.cgi

index 42e550fbda93d68000082238ae58f06ec7d67e17..c04e34db0f44a556d047d91a1e1ac4ad91920910 100755 (executable)
@@ -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",
index 8356c76a59910c16ec69e56080ddcf9abe15321e..e64cdac76d1fc8e0ba9b6bf3e5f5e9b5870d62a4 100755 (executable)
@@ -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;
     };