From: Alexander Ebert Date: Thu, 14 Nov 2019 18:18:50 +0000 (+0100) Subject: `realpath()` returns backslashes on Window X-Git-Tag: 5.2.0_Beta_3~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36e94199504ba8815e0404c666cca0e0761329bb;p=GitHub%2FWoltLab%2FWCF.git `realpath()` returns backslashes on Window --- 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