summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-03-18 20:17:26 +0000
committerChristian Fowler <spider@viovio.com>2009-03-18 20:17:26 +0000
commit256599f2fd9b68ec818323d87da90b61c1a74440 (patch)
tree54c3e96442563d103dac3e28c5bc0c228eb96eca
parent9f81375d86b32bf88bc3b836b6222ace914f8297 (diff)
downloadliberty-256599f2fd9b68ec818323d87da90b61c1a74440.tar.gz
liberty-256599f2fd9b68ec818323d87da90b61c1a74440.tar.bz2
liberty-256599f2fd9b68ec818323d87da90b61c1a74440.zip
quote Content-Disposition: attachment so spaced filenames work
-rw-r--r--plugins/mime.default.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mime.default.php b/plugins/mime.default.php
index 05a1135..d6816bc 100644
--- a/plugins/mime.default.php
+++ b/plugins/mime.default.php
@@ -1,9 +1,9 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.45 2008/12/26 08:54:19 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.46 2009/03/18 20:17:26 spiderr Exp $
*
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.45 $
+ * @version $Revision: 1.46 $
* created Thursday May 08, 2008
* @package liberty
* @subpackage liberty_mime_handler
@@ -341,7 +341,7 @@ if( !function_exists( 'mime_default_download' )) {
header( "Accept-Ranges: bytes" );
header( "Pragma: public" );
header( "Last-Modified: ".gmdate( "D, d M Y H:i:s", $pFileHash['last_modified'] )." GMT", TRUE, 200 );
- header( "Content-Disposition: attachment; filename=".$pFileHash['filename'] );
+ header( 'Content-Disposition: attachment; filename="'.$pFileHash['filename'].'"' );
header( "Content-type: ".$pFileHash['mime_type'] );
header( "Content-Description: File Transfer" );
header( "Content-Length: ".filesize( $pFileHash['source_file'] ));