mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[bug/12531] proposed solution for bug #12531
This commit is contained in:
@@ -502,8 +502,8 @@ class compress_tar extends compress
|
||||
function compress_tar($mode, $file, $type = '')
|
||||
{
|
||||
$type = (!$type) ? $file : $type;
|
||||
$this->isgz = (strpos($type, '.tar.gz') !== false || strpos($type, '.tgz') !== false) ? true : false;
|
||||
$this->isbz = (strpos($type, '.tar.bz2') !== false) ? true : false;
|
||||
$this->isgz = preg_match('#(\.tar\.gz|\.tgz)$#', $type);
|
||||
$this->isbz = preg_match('#\.tar\.bz2$#', $type);
|
||||
|
||||
$this->mode = &$mode;
|
||||
$this->file = &$file;
|
||||
|
Reference in New Issue
Block a user