From de177c6bdf5d413b4fdb860970e422fadc943669 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 16 Aug 2002 05:57:10 +0000 Subject: Bug 162068 - Fix callers of ThrowUserError to use messages.html.tmpl. Patch by gerv; r=bbaetz. --- globals.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'globals.pl') 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 $name 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 { -- cgit v1.2.3-24-g4f1b