summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2006-09-26 17:49:23 +0000
committerpb1dft <pb1dft@ampache>2006-09-26 17:49:23 +0000
commit0b4e767c336c0387c27b177b4dcec8f216911182 (patch)
tree70ee82e898c63a3e54bf5467e9be75c59882b7b4
parent08b4f1e0478228fdb4d27930b3be927cb2429833 (diff)
downloadampache-0b4e767c336c0387c27b177b4dcec8f216911182.tar.gz
ampache-0b4e767c336c0387c27b177b4dcec8f216911182.tar.bz2
ampache-0b4e767c336c0387c27b177b4dcec8f216911182.zip
Fixed a minor bug in XSPF Playlists
-rw-r--r--lib/class/stream.class.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index f1500a35..73892615 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -188,25 +188,25 @@ class Stream {
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n";
echo "<playlist version = \"1\" \n xmlns=\"http://xspf.org/ns/0/\">\n";
echo " <title>Ampache XSPF Playlist</title>\n";
- echo " <creator>" . htmlspecialchars(conf('site_title')) . "</creator>\n";
- echo " <annotation>" . htmlspecialchars(conf('site_title')) . "</annotation>\n";
+ echo " <creator>" . conf('site_title') . "</creator>\n";
+ echo " <annotation>" . conf('site_title') . "</annotation>\n";
echo " <info>". conf('web_path') ."</info>\n";
echo " <trackList>\n\n\n\n";
foreach ($this->songs as $song_id) {
$song = new Song($song_id);
$song->format_song();
- $url = htmlspecialchars($song->get_url());
+ $url = $song->get_url();
$song_name = $song->f_artist_full . " - " . $song->title . "." . $song->type;
echo " <track>\n";
echo " <location>$url</location>\n";
echo " <identifier>$url</identifier>\n";
- echo " <title>" . htmlspecialchars($song->title) . "</title>\n";
- echo " <creator>" . htmlspecialchars($song->f_artist_full) . "</creator>\n";
+ echo " <title>" . $song->title . "</title>\n";
+ echo " <creator>" . $song->f_artist_full . "</creator>\n";
echo " <annotation></annotation>\n";
- echo " <info>" . conf('web_path') . htmlspecialchars("/albums.php?action=show&album=") . htmlspecialchars($song->album) . "</info>";
- echo " <image>" . conf('web_path') . "/albumart.php?id=" . htmlspecialchars($song->album) . htmlspecialchars("&thumb=2") . "</image>\n";
- echo " <album>" . htmlspecialchars($song->f_album_full) . "</album>\n";
+ echo " <info>" . conf('web_path') . "/albums.php?action=show&album=" . $song->album . "</info>\n";
+ echo " <image>" . conf('web_path') . "/albumart.php?id=" . $song->album . "&thumb=2" . "</image>\n";
+ echo " <album>" . $song->f_album_full . "</album>\n";
echo " <duration>" . $song->time . "</duration>\n";
echo " </track>\n\n\n";
} // end foreach