[Pkg-owncloud-commits] [owncloud] 243/394: backport of #954 to stable45

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:16 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 2f49c9042a6bd4cd7a3bdbefa90002c4b3b6f1e9
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Wed Dec 19 13:28:46 2012 +0100

    backport of #954 to stable45
---
 lib/files.php |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/files.php b/lib/files.php
index f2ae8af..caebaee 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -193,6 +193,7 @@ class OC_Files {
 				header('Content-Length: ' . filesize($filename));
 			}else{
 				header('Content-Type: '.OC_Filesystem::getMimeType($filename));
+				header("Content-Length: ".OC_Filesystem::filesize($filename));
 			}
 		}elseif($zip or !OC_Filesystem::file_exists($filename)) {
 			header("HTTP/1.0 404 Not Found");
@@ -204,8 +205,6 @@ class OC_Files {
 			die('403 Forbidden');
 		}
 		if($only_header) {
-			if(!$zip)
-				header("Content-Length: ".OC_Filesystem::filesize($filename));
 			return ;
 		}
 		if($zip) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list