From bd270b02274b4e43a887e86805a44cf456f2da38 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 7 Mar 2008 06:51:52 +0000 Subject: fixed the acl issue... sigh --- lib/class/xmlrpcserver.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class/xmlrpcserver.class.php') diff --git a/lib/class/xmlrpcserver.class.php b/lib/class/xmlrpcserver.class.php index 6cb08451..5b6b3892 100644 --- a/lib/class/xmlrpcserver.class.php +++ b/lib/class/xmlrpcserver.class.php @@ -146,7 +146,7 @@ class xmlRpcServer { debug_event('XMLSERVER','Login Attempt, IP: ' . $_SERVER['REMOTE_ADDR'] . ' Time: ' . $timestamp . ' Hash:' . $encoded_key,'5'); // Convert the IP Address to an int - $ip = ip2long($_SERVER['REMOTE_ADDR']); + $ip = sprintf("%u",ip2long($_SERVER['REMOTE_ADDR'])); // Run the query and return the key's for ACLs of type RPC that would match this IP $sql = "SELECT * FROM `access_list` WHERE `type`='rpc' AND `start` <= '$ip' AND `end` >= '$ip'"; -- cgit