removed single quotes around publicly linked download file
This commit is contained in:
parent
109302a928
commit
d15673f13f
|
@ -67,7 +67,7 @@ if ($source !== false) {
|
||||||
header("Expires: 0");
|
header("Expires: 0");
|
||||||
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
|
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
|
||||||
header("Pragma: public");
|
header("Pragma: public");
|
||||||
header("Content-Disposition: filename='".basename($source)."'");
|
header("Content-Disposition: filename=".basename($source));
|
||||||
header("Content-Type: " . $mimetype);
|
header("Content-Type: " . $mimetype);
|
||||||
header("Content-Length: " . OC_Filesystem::filesize($source));
|
header("Content-Length: " . OC_Filesystem::filesize($source));
|
||||||
//download the file
|
//download the file
|
||||||
|
@ -80,4 +80,4 @@ if ($source !== false) {
|
||||||
$tmpl->printPage();
|
$tmpl->printPage();
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue