|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65094 - website/public_html/beta/common/code
From: dnljms_at_[hidden]
Date: 2010-08-29 04:52:28
Author: danieljames
Date: 2010-08-29 04:52:27 EDT (Sun, 29 Aug 2010)
New Revision: 65094
URL: http://svn.boost.org/trac/boost/changeset/65094
Log:
Just use readfile for raw files.
Text files modified:
website/public_html/beta/common/code/boost_archive.php | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2010-08-29 04:52:27 EDT (Sun, 29 Aug 2010)
@@ -282,13 +282,7 @@
// might as well not bother checking for the file
if($_SERVER['REQUEST_METHOD'] == 'HEAD') return;
- ## header('Content-Disposition: attachment; filename="downloaded.pdf"');
- $file_handle = fopen($file,'rb');
- // TODO: Check $file_handle (should be okay, because already checked for file).
- fpassthru($file_handle);
- $exit_status = fclose($file_handle);
-
- // TODO: What if !$exit_status?
+ readfile($file);
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk