Permalink
Browse files

Merge pull request #104 from Militis/c4ce65a96d88359402266be1f1b3d6e6…

…9b04983c

Fixing potential problem with using ip2long on 32 bit servers.
  • Loading branch information...
2 parents fbdbce0 + c4ce65a commit b5355f729dd0812cd07909c6471df26692825845 @benedmunds benedmunds committed Sep 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/ion_auth_model.php
@@ -599,7 +599,7 @@ public function register($username, $password, $email, $additional_data = false,
'username' => $username,
'password' => $password,
'email' => $email,
- 'ip_address' => ip2long($ip_address),
+ 'ip_address' => sprintf('%u', ip2long($ip_address)),
'created_on' => now(),
'last_login' => now(),
'active' => 1

0 comments on commit b5355f7

Please sign in to comment.