]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set Content-Disposition to attachment for shared private links
authorMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 8 May 2012 14:27:02 +0000 (10:27 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 8 May 2012 14:27:02 +0000 (10:27 -0400)
apps/files_sharing/get.php

index 59a4efba6a6c1989bdf706b04793a00d14bb7313..caf25d00cfdecfc1a3c7c6537f2b2412a9d24f68 100755 (executable)
@@ -68,7 +68,7 @@ if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) {
                $mimetype = OC_Filesystem::getMimeType($source);
                header("Content-Transfer-Encoding: binary");
                OCP\Response::disableCaching();
-               header('Content-Disposition: filename="'.basename($source).'"');
+               header('Content-Disposition: attachment; filename="'.basename($source).'"');
                header("Content-Type: " . $mimetype);
                header("Content-Length: " . OC_Filesystem::filesize($source));
                //download the file