mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-03-07 08:28:41 +00:00
fix tar source path
This commit is contained in:
parent
d708546c27
commit
6e6ce55bb8
|
|
@ -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 . '/');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user