diff options
author | David M <davidmj@users.sourceforge.net> | 2006-11-28 14:29:47 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-11-28 14:29:47 +0000 |
commit | 63496350392d12828ee1119241eaf0687811c70a (patch) | |
tree | 6c67778a8b6c51212eb0f4bfc9c414a9ab0d57f6 /phpBB | |
parent | 4308f5e8a5094887789ae1bf1d2ac37ba9410eb0 (diff) | |
download | forums-63496350392d12828ee1119241eaf0687811c70a.tar forums-63496350392d12828ee1119241eaf0687811c70a.tar.gz forums-63496350392d12828ee1119241eaf0687811c70a.tar.bz2 forums-63496350392d12828ee1119241eaf0687811c70a.tar.xz forums-63496350392d12828ee1119241eaf0687811c70a.zip |
#5654
- bzopen_or_bzdopen in bzlib.c appends us our binary mode in a strcat call, we don't need it for bzopen();
git-svn-id: file:///svn/phpbb/trunk@6688 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_compress.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php index 93a3547e21..3fe2bf9a9b 100644 --- a/phpBB/includes/functions_compress.php +++ b/phpBB/includes/functions_compress.php @@ -600,7 +600,7 @@ class compress_tar extends compress function open() { $fzopen = ($this->isbz && function_exists('bzopen')) ? 'bzopen' : (($this->isgz && @extension_loaded('zlib')) ? 'gzopen' : 'fopen'); - $this->fp = @$fzopen($this->file, $this->mode . 'b' . (($fzopen == 'gzopen') ? '9' : '')); + $this->fp = @$fzopen($this->file, $this->mode . (($fzopen == 'bzopen') ? '' : 'b') . (($fzopen == 'gzopen') ? '9' : '')); if (!$this->fp) { |