diff options
author | xgizzmo <xgizzmo@ampache> | 2007-08-06 02:08:01 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2007-08-06 02:08:01 +0000 |
commit | add90bc902ce762626fe72d408f42d705d3f9de7 (patch) | |
tree | 3bfd3ee2a3ed3a90ce314172f637216e8536dd24 | |
parent | fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d (diff) | |
download | ampache-add90bc902ce762626fe72d408f42d705d3f9de7.tar.gz ampache-add90bc902ce762626fe72d408f42d705d3f9de7.tar.bz2 ampache-add90bc902ce762626fe72d408f42d705d3f9de7.zip |
Fix link given out by song class so that they can pass validation
-rw-r--r-- | lib/class/song.class.php | 6 | ||||
-rw-r--r-- | update.php | 2 |
2 files changed, 4 insertions, 4 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&song_id=" . $this->id . "\">$this->f_title</a>"; - $this->f_album_link = "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&album=" . $this->album . "\">$this->f_album</a>"; - $this->f_artist_link = "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&artist=" . $this->artist . "\">$this->f_artist</a>"; + $this->f_link = "<a href=\"" . Config::get('web_path') . "/stream.php?action=single_song&song_id=" . $this->id . "\"> " . scrub_out($this->f_title) . "</a>"; + $this->f_album_link = "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&album=" . $this->album . "\"> " . scrub_out($this->f_album) . "</a>"; + $this->f_artist_link = "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&artist=" . $this->artist . "\"> " . scrub_out($this->f_artist) . "</a>"; // Format the Bitrate $this->f_bitrate = intval($this->bitrate/1000) . "-" . strtoupper($this->mode); @@ -55,7 +55,7 @@ $htmllang = str_replace("_","-",Config::get('lang')); <head> <link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" /> -<link rel="stylesheet" type="text/css" media="screen" href="<?php echo Config::get('web_path') . '/templates/install.css'; ?>"> +<link rel="stylesheet" type="text/css" media="screen" href="<?php echo Config::get('web_path') . '/templates/install.css'; ?>" /> <title>Ampache - Update</title> </head> <body> |