Skip to content

Commit b14d4e6

Browse files
committed
Update Archive.php
1 parent 3524350 commit b14d4e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Filesystem/Archive.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public static function uncompress($archive, $to = '', $remove = false) : bool
119119
*/
120120
public static function isGzip($archive, $length = 4096) : bool
121121
{
122-
if ( self::isFile($archive) ) {
122+
if ( self::isFile($archive)
123+
&& self::getExtension($archive) == 'gz' ) {
123124
$status = false;
124125
if ( ($gz = gzopen($archive, 'r')) ) {
125126
$status = (bool)gzread($gz, $length);

0 commit comments

Comments
 (0)