From fdb944e7a3168204ec7138f400711591ef1d9667 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Wed, 3 Aug 2011 02:29:33 +0200
Subject: [PATCH] send the filename header for public links

---
 apps/files_publiclink/get.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files_publiclink/get.php b/apps/files_publiclink/get.php
index 49bba90185..2e1ba4bf36 100644
--- a/apps/files_publiclink/get.php
+++ b/apps/files_publiclink/get.php
@@ -66,6 +66,7 @@ if($path!==false){
 		header('Expires: 0');
 		header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 		header('Pragma: public');
+		header('Content-Disposition: filename="'.basename($path).'"');
 		header('Content-Type: ' . $mimetype);
 		header('Content-Length: ' . OC_Filesystem::filesize($path));
 		
-- 
GitLab