diff options
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 8e15c136..f1ff7a33 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -65,10 +65,10 @@ class Api { // Clean incomming variables $user_id = Dba::escape($user_id); $timestamp = intval($timestamp); - $ip = ip2int($ip); + $ip = ip2long($ip); // Log this attempt - debug_event('API','Login Attempt, IP:' . int2ip($ip) . ' Time:' . $timestamp . ' User:' . $user_id . ' Auth:' . $passphrase,'1'); + debug_event('API','Login Attempt, IP:' . long2ip($ip) . ' Time:' . $timestamp . ' User:' . $user_id . ' Auth:' . $passphrase,'1'); // Run the query and return the passphrases as we'll have to mangle them // to figure out if they match what we've got |