[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/sysadmin-kde-org-trellis] includes/functions: Fix downloading of attachments.
From: Tom Albers <toma () kde ! org>
Date: 2013-04-03 18:15:46
Message-ID: 20130403181546.2667DA6059 () git ! kde ! org
[Download RAW message or body]
Git commit 898eb76f7581b1afe2d7d9811879ae86ca2d1979 by Tom Albers.
Committed on 03/04/2013 at 20:16.
Pushed by toma into branch 'master'.
Fix downloading of attachments.
M +2 -1 includes/functions/func_attachments.php
http://commits.kde.org/websites/sysadmin-kde-org-trellis/898eb76f7581b1afe2=
d7d9811879ae86ca2d1979
diff --git a/includes/functions/func_attachments.php b/includes/functions/f=
unc_attachments.php
index 1b7c193..c99646c 100755
--- a/includes/functions/func_attachments.php
+++ b/includes/functions/func_attachments.php
@@ -247,6 +247,7 @@ class td_func_attachments {
}
=
header( "Expires: ". gmdate( 'D, d M Y H:i:s', time() ) ." GMT" );
+ header( "Content-Length: " . filesize($file));
=
readfile( $file );
=
@@ -257,4 +258,4 @@ class td_func_attachments {
=
}
=
-?>
\ No newline at end of file
+?>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic