summaryrefslogtreecommitdiffstats
path: root/lib/class/xmlrpcserver.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-01 01:06:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-01 01:06:46 +0000
commitb9a2603025483deefbf7636de3f6c0786e95d293 (patch)
tree5d2ece594fbed8a58874830c42d8182f025ef16b /lib/class/xmlrpcserver.class.php
parent1891fd835cc3cd60d7c3a2ec8bf90b51ca261bf0 (diff)
downloadampache-b9a2603025483deefbf7636de3f6c0786e95d293.tar.gz
ampache-b9a2603025483deefbf7636de3f6c0786e95d293.tar.bz2
ampache-b9a2603025483deefbf7636de3f6c0786e95d293.zip
Finish IPv6 support
Diffstat (limited to 'lib/class/xmlrpcserver.class.php')
-rw-r--r--lib/class/xmlrpcserver.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/xmlrpcserver.class.php b/lib/class/xmlrpcserver.class.php
index d8d5fed2..ae1d1653 100644
--- a/lib/class/xmlrpcserver.class.php
+++ b/lib/class/xmlrpcserver.class.php
@@ -213,7 +213,7 @@ class xmlRpcServer {
debug_event('XMLSERVER','Login Attempt, IP: ' . $_SERVER['REMOTE_ADDR'] . ' Time: ' . $timestamp . ' Hash:' . $encoded_key,'1');
// Convert the IP Address to an int
- $ip = sprintf("%u",ip2long($_SERVER['REMOTE_ADDR']));
+ $ip = Dba::escape(inet_pton($_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'";