[0005326] Install Languages/Extensions/Themes/CoA: fixed warnings during module insta...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 20 Jan 2021 22:16:58 +0000 (23:16 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 20 Jan 2021 22:16:58 +0000 (23:16 +0100)
includes/archive.inc

index b1a81001eb1d5fe10c51d01f4fcf79aa99356071..b99b15dbca51e295c5250b1e8dd8c5d229061727 100644 (file)
@@ -322,7 +322,8 @@ class tar_file extends archive
 
                        while ($block = fread($fp, 512))
                        {
-                               $temp = unpack("a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100symlink/a6magic/a2temp/a32temp/a32temp/a8temp/a8temp/a155prefix/a12temp", $block);
+                               $temp = unpack("Z100name/Z8mode/Z8uid/Z8gid/Z12size/Z12mtime/Z8checksum/Z1type/Z100symlink/Z6magic/Z2temp/Z32temp/Z32temp/Z8temp/Z8temp/Z155prefix/Z12temp", $block);
+
                                $file = array (
                                        'name' => rtrim($temp['prefix']) . rtrim($temp['name']),
                                        'stat' => array (