summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-06-16 14:26:50 +0200
committerbbaetz%student.usyd.edu.au <>2002-06-16 14:26:50 +0200
commit89aebbf6bf7cf73f9ae51d295aee68205c68e731 (patch)
tree16ef3dff2168d43840a1271b0c018306a07c748e
parent9748a9f93d2de757a60dfa2656890dc1e764e486 (diff)
downloadbugzilla-89aebbf6bf7cf73f9ae51d295aee68205c68e731.tar.gz
bugzilla-89aebbf6bf7cf73f9ae51d295aee68205c68e731.tar.xz
Bug 151369 - need to trim the entered assignee's email address
r=mattyt x2
-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;
};