Permalink
Browse files

fixed function startDownload

  • Loading branch information...
1 parent e0dbe5a commit a161926a5e86ed2fe1cb81dcb236b629b498257d @speendo committed May 16, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 webscripts/download.php
  2. +1 −1 webscripts/functions.php
  3. +1 −1 webscripts/latest.php
@@ -26,6 +26,6 @@
$path = decrypt($_GET['path'], $encryptionKey);
$mimeType = $_GET['mimeType'];
-startDownload($path);
+startDownload($path, $mimeType);
?>
@@ -94,7 +94,7 @@ function decrypt($string, $encryptionKey) {
}
}
-function startDownload($path) {
+function startDownload($path, $mimeType) {
if(!file_exists($path)) {
// File doesn't exist, output error
exit('file not found');
@@ -76,5 +76,5 @@
$newestFile = $newestFile[0];
## start download
-startDownload($newestFile);
+startDownload($newestFile, $mimeType);
?>

0 comments on commit a161926

Please sign in to comment.