mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
[bug/12531] proposed solution for bug #12531
This commit is contained in:
parent
0307d1f4aa
commit
5cfa354433
@ -99,6 +99,7 @@
|
||||
<li>[Fix] Add terminating semicolons to JavaScript code. (Bug #58085 - Patch by nn-)</li>
|
||||
<li>[Fix] Minor language fixes. (Bug #54855)</li>
|
||||
<li>[Fix] Parsing urls in signatures properly uses config settings. (Bug #57105)</li>
|
||||
<li>[Fix] Prevent wrong tar archive type detection. (Bug #12531)</li>
|
||||
<li>[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)</li>
|
||||
</ul>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user