`realpath()` returns backslashes on Window
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Nov 2019 18:18:50 +0000 (19:18 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Nov 2019 18:18:50 +0000 (19:18 +0100)
wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php

index fd0c150ccd3087060a3fadbfc9d3edb08dcf4c10..52ab31b4b9f3635ea7ec4848cd3a5e6cd2b401be 100644 (file)
@@ -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