Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vandor/Magento/Framework/Archive/Tar.php | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
- diff --git a/vandor/Magento/Framework/Archive/Tar.php b/vandor/Magento/Framework/Archive/Tar.php
- index 7fe1255e5b85..0a74753077c4 100644
- --- a/vandor/Magento/Framework/Archive/Tar.php
- +++ b/vandor/Magento/Framework/Archive/Tar.php
- @@ -259,10 +259,7 @@ protected function _createTar($skipRoot = false, $finalize = false)
- );
- }
- - array_shift($dirFiles);
- - /* remove './'*/
- - array_shift($dirFiles);
- - /* remove '../'*/
- + $dirFiles = array_diff($dirFiles, ['..', '.']);
- foreach ($dirFiles as $item) {
- $this->_setCurrentFile($file . $item)->_createTar();
- From 39e0ad9a72f528b9ab64894cdcaf436fa8ba9827 Mon Sep 17 00:00:00 2001
- From: Ihor Sviziev <ihor-sviziev@users.noreply.github.com>
- Date: Mon, 1 Oct 2018 05:46:57 +0300
- Subject: [PATCH 2/2] Fix static test
- ---
- vandor/Magento/Framework/Archive/Tar.php | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
- diff --git a/vandor/Magento/Framework/Archive/Tar.php b/vandor/Magento/Framework/Archive/Tar.php
- index 0a74753077c4..a858b2411515 100644
- --- a/vandor/Magento/Framework/Archive/Tar.php
- +++ b/vandor/Magento/Framework/Archive/Tar.php
- @@ -4,15 +4,15 @@
- * See COPYING.txt for license details.
- */
- +namespace Magento\Framework\Archive;
- +
- +use Magento\Framework\Archive\Helper\File;
- +
- /**
- * Class to work with tar archives
- *
- * @author Magento Core Team <core@magentocommerce.com>
- */
- -namespace Magento\Framework\Archive;
- -
- -use Magento\Framework\Archive\Helper\File;
- -
- class Tar extends \Magento\Framework\Archive\AbstractArchive implements \Magento\Framework\Archive\ArchiveInterface
- {
- /**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement