From 51fd897d567e6ae8377ce832c0f90dfe268e20b4 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 26 Mar 2011 05:31:00 -0700 Subject: [PATCH] Yet another document bug fix; tested and works well (sha-1 validaiton and encrtpy/decrypt also works) --- controllers/C_Document.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/C_Document.class.php b/controllers/C_Document.class.php index 6251feaf9..c29d5840e 100644 --- a/controllers/C_Document.class.php +++ b/controllers/C_Document.class.php @@ -330,7 +330,7 @@ class C_Document extends Controller { } else { header("Content-Disposition: " . ($as_file ? "attachment" : "inline") . "; filename=\"" . basename($d->get_url()) . "\""); header("Content-Type: " . $d->get_mimetype()); - header("Content-Length: " . $d->get_size()); + header("Content-Length: " . filesize($url)); fpassthru($f); } exit; -- 2.11.4.GIT