[geeklog-cvs] geeklog-1.3/system/classes downloader.class.php,1.4,1.5
dhaun at geeklog.net
dhaun at geeklog.net
Sun Jan 11 14:16:12 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory geeklog_prod:/tmp/cvs-serv14617
Modified Files:
downloader.class.php
Log Message:
header() doesn't need to send a "\n".
Index: downloader.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/downloader.class.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** downloader.class.php 31 Dec 2003 05:41:51 -0000 1.4
--- downloader.class.php 11 Jan 2004 19:16:10 -0000 1.5
***************
*** 501,507 ****
if ($this->checkExtension($fextension)) {
// Display file inside browser.
! header('Content-type: ' . $this->_availableMimeTypes[$fextension] . "\n");
! header('Content-transfer-encoding: binary' . "\n");
! header('Content-length: ' . filesize($this->_sourceDirectory . $fileName) . "\n");
header('Content-Disposition: attachment; filename="' . $fileName . '"');
--- 501,507 ----
if ($this->checkExtension($fextension)) {
// Display file inside browser.
! header('Content-Type: ' . $this->_availableMimeTypes[$fextension]);
! header('Content-transfer-encoding: binary');
! header('Content-length: ' . filesize($this->_sourceDirectory . $fileName));
header('Content-Disposition: attachment; filename="' . $fileName . '"');
More information about the geeklog-cvs
mailing list