diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-07 06:51:52 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-07 06:51:52 +0000 |
commit | bd270b02274b4e43a887e86805a44cf456f2da38 (patch) | |
tree | 8accb5ce9cbccd2f051eb271f9daa30c589e0fc2 /lib/class/xmlrpcserver.class.php | |
parent | 84b483c99a32452dc53b9b77fdf818c710bcd5d3 (diff) | |
download | ampache-bd270b02274b4e43a887e86805a44cf456f2da38.tar.gz ampache-bd270b02274b4e43a887e86805a44cf456f2da38.tar.bz2 ampache-bd270b02274b4e43a887e86805a44cf456f2da38.zip |
fixed the acl issue... sigh
Diffstat (limited to 'lib/class/xmlrpcserver.class.php')
-rw-r--r-- | lib/class/xmlrpcserver.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'"; |