summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/globals.pl b/globals.pl
index 3e119644b..6376b60f4 100644
--- a/globals.pl
+++ b/globals.pl
@@ -946,10 +946,8 @@ sub DBNameToIdAndCheck {
return $result;
}
- $name = html_quote($name);
- ThrowUserError("The name <tt>$name</tt> is not a valid username.
- Either you misspelled it, or the person has not
- registered for a Bugzilla account.");
+ $::vars->{'name'} = $name;
+ ThrowUserError("invalid_username");
}
sub get_product_id {