From aaeda0744e3ed9b40e1188d0ede48d42f8b44557 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 7 Jun 2021 09:57:04 +0200 Subject: [PATCH] Normalize file paths in `Installer::install()` The missing normalization can result in duplicate log entries like `.gitignore` and `./.gitignore`, for example. --- wcfsetup/install/files/lib/system/setup/Installer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/setup/Installer.class.php b/wcfsetup/install/files/lib/system/setup/Installer.class.php index 920c95a02c..8ea3ced329 100644 --- a/wcfsetup/install/files/lib/system/setup/Installer.class.php +++ b/wcfsetup/install/files/lib/system/setup/Installer.class.php @@ -139,7 +139,7 @@ class Installer } // remove leading slash - $file['filename'] = FileUtil::removeLeadingSlash($file['filename']); + $file['filename'] = FileUtil::getRealPath(FileUtil::removeLeadingSlash($file['filename'])); if ($file['type'] == 'folder') { // remove trailing slash $directories[] = FileUtil::removeTrailingSlash($file['filename']); -- 2.20.1