From: lpsolit%gmail.com <> Date: Sat, 26 Aug 2006 03:14:58 +0000 (+0000) Subject: Bug 350120: undefined value when creating a new user account - Patch by Frédéric... X-Git-Tag: bugzilla-2.23.3~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f86bdf887f419be90115e641047c3f24d41d167f;p=thirdparty%2Fbugzilla.git Bug 350120: undefined value when creating a new user account - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 6dd8baa6ea..f00e652808 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);