]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 350120: undefined value when creating a new user account - Patch by Frédéric...
authorlpsolit%gmail.com <>
Sat, 26 Aug 2006 03:14:58 +0000 (03:14 +0000)
committerlpsolit%gmail.com <>
Sat, 26 Aug 2006 03:14:58 +0000 (03:14 +0000)
Bugzilla/Token.pm

index 6dd8baa6ea5f370e8146a8920080d35ab69ce3db..f00e65280827886801d432f14319292dd17c9fe0 100644 (file)
@@ -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);