Fix error message in PackageArchive::extractTar()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 8 Sep 2023 13:17:36 +0000 (15:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 12 Sep 2023 11:58:02 +0000 (13:58 +0200)
The two archive names were swapped.

wcfsetup/install/files/lib/system/package/PackageArchive.class.php

index e413de4ceac2229cccf797036490d1b0d73987da..4a774272a9f5b83a8557292e87d7a105dbb0753f 100644 (file)
@@ -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,
             ]);
         }