From f86bdf887f419be90115e641047c3f24d41d167f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 26 Aug 2006 03:14:58 +0000 Subject: Bug 350120: undefined value when creating a new user account - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Token.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Token.pm') diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 6dd8baa6e..f00e65280 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -310,7 +310,7 @@ sub _create_token { my ($userid, $tokentype, $eventdata) = @_; my $dbh = Bugzilla->dbh; - detaint_natural($userid); + detaint_natural($userid) if defined $userid; trick_taint($tokentype); trick_taint($eventdata); -- cgit v1.2.3-24-g4f1b