summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-11 16:01:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-11 16:01:29 +0000
commitdced24f2c5475199fd7f23de726ae2f1423e3956 (patch)
treec807e4712551e42e92a911d19d76aeafff56a8da /modules
parent46d87d6bf4d2c901911d927ee089e088713f9b3e (diff)
downloadampache-dced24f2c5475199fd7f23de726ae2f1423e3956.tar.gz
ampache-dced24f2c5475199fd7f23de726ae2f1423e3956.tar.bz2
ampache-dced24f2c5475199fd7f23de726ae2f1423e3956.zip
fix for the httpq player so that it works with songs that have spaces in the name
Diffstat (limited to 'modules')
-rw-r--r--modules/httpq/httpqplayer.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/httpq/httpqplayer.class.php b/modules/httpq/httpqplayer.class.php
index dae6f29e..82685a51 100644
--- a/modules/httpq/httpqplayer.class.php
+++ b/modules/httpq/httpqplayer.class.php
@@ -54,8 +54,8 @@ class HttpQPlayer {
*/
function add($name, $url) {
- $args['name'] = $name;
- $args['url'] = str_replace("&","%26",$url);
+ $args['name'] = urlencode($name);
+ $args['url'] = urlencode($url);
$results = $this->sendCommand('playurl', $args);