From dc8acd4175451d1bad6afe5787dfeaeae16ac292 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 8 Sep 2023 15:17:36 +0200 Subject: [PATCH] Fix error message in PackageArchive::extractTar() The two archive names were swapped. --- .../install/files/lib/system/package/PackageArchive.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index e413de4cea..4a774272a9 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -716,8 +716,8 @@ class PackageArchive // throw error message if not found. if (($fileIndex = $this->tar->getIndexByFilename($filename)) === false) { throw new PackageValidationException(PackageValidationException::FILE_NOT_FOUND, [ - 'archive' => $this->archive, - 'targetArchive' => $filename, + 'targetArchive' => $this->archive, + 'archive' => $filename, ]); } -- 2.20.1