summaryrefslogtreecommitdiffstats
path: root/lib/class/catalog.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-25 03:35:08 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-25 03:35:08 +0000
commit4fecf43894deb10a980441edf72dfa567b64a23d (patch)
tree4bd468edb74ec28c648609baae6d9aa0a94e2b8c /lib/class/catalog.class.php
parent0dce31de404c46555b0c0d9c58297b506e50e4f8 (diff)
downloadampache-4fecf43894deb10a980441edf72dfa567b64a23d.tar.gz
ampache-4fecf43894deb10a980441edf72dfa567b64a23d.tar.bz2
ampache-4fecf43894deb10a980441edf72dfa567b64a23d.zip
- Added ability to delete radio and playlist
- Tweaked Classic CSS to fix issue with larger fonts - Fixed some javascript update issues due to quoting on the catalog processes - Fixed display of the MOTD
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r--lib/class/catalog.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index f07c1b9a..c3aaae96 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -467,7 +467,7 @@ class Catalog {
$file = str_replace(array('(',')','\''),'',$full_file);
echo "<script type=\"text/javascript\">\n";
echo "update_txt('" . $this->count ."','add_count_" . $this->id . "');";
- echo "update_txt('" . htmlentities($file) . "','add_dir_" . $this->id . "');";
+ echo "update_txt('" . addslashes(htmlentities($file)) . "','add_dir_" . $this->id . "');";
echo "\n</script>\n";
flush();
} // update our current state
@@ -583,7 +583,7 @@ class Catalog {
if ( !($search_count%5)) {
echo "<script type=\"text/javascript\">\n";
echo "update_txt('" . $search_count ."','count_art_" . $this->id . "');";
- echo "update_txt('" . $album->name . "','read_art_" . $this->id . "');";
+ echo "update_txt('" . addslashes($album->name) . "','read_art_" . $this->id . "');";
echo "\n</script>\n";
flush();
} //echos song count