summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-07 06:51:52 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-07 06:51:52 +0000
commitbd270b02274b4e43a887e86805a44cf456f2da38 (patch)
tree8accb5ce9cbccd2f051eb271f9daa30c589e0fc2 /lib/class/stream.class.php
parent84b483c99a32452dc53b9b77fdf818c710bcd5d3 (diff)
downloadampache-bd270b02274b4e43a887e86805a44cf456f2da38.tar.gz
ampache-bd270b02274b4e43a887e86805a44cf456f2da38.tar.bz2
ampache-bd270b02274b4e43a887e86805a44cf456f2da38.zip
fixed the acl issue... sigh
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index fee74523..10ad2044 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -188,7 +188,7 @@ class Stream {
$expire = time() + Config::get('stream_length');
$sid = Dba::escape($sid);
$agent = Dba::escape($_SERVER['HTTP_USER_AGENT']);
- $ip = ip2long($_SERVER['REMOTE_ADDR']);
+ $ip = sprintf("%u",ip2long($_SERVER['REMOTE_ADDR']));
$uid = Dba::escape($uid);
$sql = "UPDATE `session_stream` SET `expire`='$expire', `agent`='$agent', `ip`='$ip' " .