From 0c0262b8a7326d1e2effbce5d422fd672300d114 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 19 Jun 2005 18:05:40 +0000 Subject: mother of all commits... --- lib/artist.php | 2 +- lib/batch.php | 2 +- lib/duplicates.php | 11 ++++++----- lib/ui.php | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/artist.php b/lib/artist.php index 5ccd200a..38a93c75 100644 --- a/lib/artist.php +++ b/lib/artist.php @@ -50,7 +50,7 @@ function get_artists($sql, $action=0) { function format_artist($artist) { $web_path = conf('web_path'); - $artist['name'] = "" . $artist['prefix'] . " " . $artist['name'] . ""; + $artist['name'] = "" . htmlspecialchars($artist['prefix']) . " " . htmlspecialchars($artist['name']) . ""; return $artist; diff --git a/lib/batch.php b/lib/batch.php index a3a3aba3..508564c1 100644 --- a/lib/batch.php +++ b/lib/batch.php @@ -32,7 +32,7 @@ function get_song_files( $song_ids ) { /* Don't archive disabled songs */ if ($song->status != 'disabled') { $user->update_stats( $song_id ); - $total_size += sprintf("%.2f",($song->size/1048576));; + $total_size += sprintf("%.2f",($song->size/1048576)); array_push( $song_files, $song->file ); } // if song isn't disabled } diff --git a/lib/duplicates.php b/lib/duplicates.php index 94f3deda..202f1185 100644 --- a/lib/duplicates.php +++ b/lib/duplicates.php @@ -88,30 +88,31 @@ function show_duplicate_searchbox($search_type) { $checked = "checked=\"checked\""; else $checked = ""; - echo "" . _("Title") . "
"; + echo "" . _("Title") . "
"; if ($search_type=="artist_title") $checked = "checked=\"checked\""; else $checked = ""; - echo "" . _("Artist and Title") . "
"; + echo "" . _("Artist and Title") . "
"; if ($search_type=="artist_album_title"OR $search_type=="") $checked = "checked=\"checked\""; else $checked = ""; - echo "" . _("Artist, Album and Title") . "
"; + echo "" . _("Artist, Album and Title") . "
"; ?> - + " /> -
+ +
diff --git a/lib/ui.php b/lib/ui.php index 4d1e7671..fbbdcf8b 100644 --- a/lib/ui.php +++ b/lib/ui.php @@ -334,7 +334,7 @@ function truncate_with_ellipse($text, $max=27) { */ function show_footer() { $class = "table-header"; - echo "


 
"; + echo "


 
"; } // show_footer /*! -- cgit