Fix devtools when project path contains symbolic link
authorMatthias Schmidt <gravatronics@live.com>
Mon, 11 Nov 2019 17:26:47 +0000 (18:26 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 11 Nov 2019 17:26:47 +0000 (18:26 +0100)
wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php

index 1edd47a325688a174ada054e035f08d94a2d51a3..fd0c150ccd3087060a3fadbfc9d3edb08dcf4c10 100644 (file)
@@ -31,7 +31,7 @@ class DevtoolsPackageArchive extends PackageArchive {
         * @inheritDoc
         */
        public function openArchive() {
-               $projectDir = FileUtil::addTrailingSlash(dirname($this->packageXmlPath));
+               $projectDir = FileUtil::addTrailingSlash(realpath(dirname($this->packageXmlPath)));
                
                $readFiles = DirectoryUtil::getInstance($projectDir)->getFiles(
                        SORT_ASC,