summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2007-08-06 02:08:01 +0000
committerxgizzmo <xgizzmo@ampache>2007-08-06 02:08:01 +0000
commitadd90bc902ce762626fe72d408f42d705d3f9de7 (patch)
tree3bfd3ee2a3ed3a90ce314172f637216e8536dd24 /lib/class
parentfb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d (diff)
downloadampache-add90bc902ce762626fe72d408f42d705d3f9de7.tar.gz
ampache-add90bc902ce762626fe72d408f42d705d3f9de7.tar.bz2
ampache-add90bc902ce762626fe72d408f42d705d3f9de7.zip
Fix link given out by song class so that they can pass validation
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/song.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 2b63be6b..a8155777 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -678,9 +678,9 @@ class Song {
$this->f_title = truncate_with_ellipsis($this->title,Config::get('ellipse_threshold_title'));
// Create Links for the different objects
- $this->f_link = "<a href=\"" . Config::get('web_path') . "/stream.php?action=single_song&amp;song_id=" . $this->id . "\">$this->f_title</a>";
- $this->f_album_link = "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&amp;album=" . $this->album . "\">$this->f_album</a>";
- $this->f_artist_link = "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&amp;artist=" . $this->artist . "\">$this->f_artist</a>";
+ $this->f_link = "<a href=\"" . Config::get('web_path') . "/stream.php?action=single_song&amp;song_id=" . $this->id . "\"> " . scrub_out($this->f_title) . "</a>";
+ $this->f_album_link = "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&amp;album=" . $this->album . "\"> " . scrub_out($this->f_album) . "</a>";
+ $this->f_artist_link = "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&amp;artist=" . $this->artist . "\"> " . scrub_out($this->f_artist) . "</a>";
// Format the Bitrate
$this->f_bitrate = intval($this->bitrate/1000) . "-" . strtoupper($this->mode);