diff --git a/include/class.http.php b/include/class.http.php index 2616121c24b130f365f58b2b10f1d1810be118c8..daafa21e7da605129bdd9c3754eac40e69520b0a 100644 --- a/include/class.http.php +++ b/include/class.http.php @@ -106,6 +106,9 @@ class Http { } function download($filename, $type, $data=null, $disposition='attachment') { + if (strpos($type, 'image/') !== 0) + $disposition='attachment'; + header('Pragma: private'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Cache-Control: private', false);