diff options
author | Sébastien LIENARD <slix@kerlinux.org> | 2012-02-20 23:43:12 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-02-20 23:43:12 -0500 |
commit | 591a52282451b23a157c707fc5022e1b19d5f674 (patch) | |
tree | e878624686ee719a854fb1c0e3e505ae23a4570f /image.php | |
parent | 073f49c3e876bbc361d0bc8174fc4660208c2e3e (diff) | |
download | ampache-591a52282451b23a157c707fc5022e1b19d5f674.tar.gz ampache-591a52282451b23a157c707fc5022e1b19d5f674.tar.bz2 ampache-591a52282451b23a157c707fc5022e1b19d5f674.zip |
FS#209 - Google Chrome doesn't show album art when album name contains commas
It seems that Chrome believes that commas end header values (it's
probably correct in this belief). Quoting the value should avoid this,
and potentially other issues.
Diffstat (limited to 'image.php')
-rw-r--r-- | image.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -124,7 +124,8 @@ switch ($_GET['type']) { header("Cache-Control: no-store, no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: $mime"); - header("Content-Disposition: filename=" . scrub_out($media->name) . "." . $extension); + header('Content-Disposition: filename="' . scrub_out($media->name) . '.' . + $extension . '"'); echo $source; break; |