]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added the missing quotes on the filename.
authorBorjan Tchakaloff <borjan@tchakaloff.fr>
Wed, 5 Oct 2011 11:16:34 +0000 (15:16 +0400)
committerBorjan Tchakaloff <borjan@tchakaloff.fr>
Wed, 5 Oct 2011 11:20:32 +0000 (15:20 +0400)
apps/files_sharing/get.php

index 083f48e1127c458e93456a63048d245a6e2a8c92..7d040689d41915b914f0a9c5b1201341078b3cf3 100644 (file)
@@ -70,7 +70,7 @@ if ($source !== false) {
                header("Expires: 0");
                header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
                header("Pragma: public");
-               header("Content-Disposition: filename=".basename($source));
+               header('Content-Disposition: filename="'.basename($source).'"');
                header("Content-Type: " . $mimetype);
                header("Content-Length: " . OC_Filesystem::filesize($source));
                //download the file