Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. vandor/Magento/Framework/Archive/Tar.php | 5 +----
  2. 1 file changed, 1 insertion(+), 4 deletions(-)
  3.  
  4. diff --git a/vandor/Magento/Framework/Archive/Tar.php b/vandor/Magento/Framework/Archive/Tar.php
  5. index 7fe1255e5b85..0a74753077c4 100644
  6. --- a/vandor/Magento/Framework/Archive/Tar.php
  7. +++ b/vandor/Magento/Framework/Archive/Tar.php
  8. @@ -259,10 +259,7 @@ protected function _createTar($skipRoot = false, $finalize = false)
  9. );
  10. }
  11.  
  12. - array_shift($dirFiles);
  13. - /* remove './'*/
  14. - array_shift($dirFiles);
  15. - /* remove '../'*/
  16. + $dirFiles = array_diff($dirFiles, ['..', '.']);
  17.  
  18. foreach ($dirFiles as $item) {
  19. $this->_setCurrentFile($file . $item)->_createTar();
  20.  
  21. From 39e0ad9a72f528b9ab64894cdcaf436fa8ba9827 Mon Sep 17 00:00:00 2001
  22. From: Ihor Sviziev <ihor-sviziev@users.noreply.github.com>
  23. Date: Mon, 1 Oct 2018 05:46:57 +0300
  24. Subject: [PATCH 2/2] Fix static test
  25.  
  26. ---
  27. vandor/Magento/Framework/Archive/Tar.php | 8 ++++----
  28. 1 file changed, 4 insertions(+), 4 deletions(-)
  29.  
  30. diff --git a/vandor/Magento/Framework/Archive/Tar.php b/vandor/Magento/Framework/Archive/Tar.php
  31. index 0a74753077c4..a858b2411515 100644
  32. --- a/vandor/Magento/Framework/Archive/Tar.php
  33. +++ b/vandor/Magento/Framework/Archive/Tar.php
  34. @@ -4,15 +4,15 @@
  35. * See COPYING.txt for license details.
  36. */
  37.  
  38. +namespace Magento\Framework\Archive;
  39. +
  40. +use Magento\Framework\Archive\Helper\File;
  41. +
  42. /**
  43. * Class to work with tar archives
  44. *
  45. * @author Magento Core Team <core@magentocommerce.com>
  46. */
  47. -namespace Magento\Framework\Archive;
  48. -
  49. -use Magento\Framework\Archive\Helper\File;
  50. -
  51. class Tar extends \Magento\Framework\Archive\AbstractArchive implements \Magento\Framework\Archive\ArchiveInterface
  52. {
  53. /**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement