From 6e6ce55bb8e9907247ef08ee11bdadeed5e0fe77 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 20 Oct 2018 18:45:31 +0200 Subject: [PATCH] fix tar source path --- Utils/IO/Zip/Tar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/IO/Zip/Tar.php b/Utils/IO/Zip/Tar.php index 6210f4799..9e1c64bdd 100644 --- a/Utils/IO/Zip/Tar.php +++ b/Utils/IO/Zip/Tar.php @@ -47,7 +47,7 @@ class Tar implements ArchiveInterface $source = $relative; $relative = ''; } - + $source = \realpath($source); if ($source === false) { @@ -102,7 +102,7 @@ class Tar implements ArchiveInterface $destination = \str_replace('\\', '/', $destination); $destination = \rtrim($destination, '/'); - $tar = new \PharData($destination); + $tar = new \PharData($source); $tar->extractTo($destination . '/');