From 36e94199504ba8815e0404c666cca0e0761329bb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 14 Nov 2019 19:18:50 +0100 Subject: [PATCH] `realpath()` returns backslashes on Window --- .../system/devtools/package/DevtoolsPackageArchive.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php index fd0c150ccd..52ab31b4b9 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php @@ -31,8 +31,7 @@ class DevtoolsPackageArchive extends PackageArchive { * @inheritDoc */ public function openArchive() { - $projectDir = FileUtil::addTrailingSlash(realpath(dirname($this->packageXmlPath))); - + $projectDir = FileUtil::addTrailingSlash(FileUtil::unifyDirSeparator(realpath(dirname($this->packageXmlPath)))); $readFiles = DirectoryUtil::getInstance($projectDir)->getFiles( SORT_ASC, // ignore folders whose contents are delivered as archives by default -- 2.20.1