Add explicit support for `*` in excludedPackages in `PackageUpdateAction`
authorjoshuaruesweg <ruesweg@woltlab.com>
Wed, 27 Apr 2022 13:01:28 +0000 (15:01 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Wed, 27 Apr 2022 13:01:34 +0000 (15:01 +0200)
Fixes #4736

wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php

index e80f1ddad7834d59b68d9573f766efc65a05f886..048a36bb4156de5fed576c6712693ff23a2b2e95 100644 (file)
@@ -140,7 +140,8 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction
             if (!isset($excludedPackagesOfInstalledPackages[$row['excludedPackage']])) {
                 $excludedPackagesOfInstalledPackages[$row['excludedPackage']] = $row['excludedPackageVersion'];
             } elseif (
-                Package::compareVersion(
+                $row['excludedPackageVersion'] === '*'
+                || Package::compareVersion(
                     $excludedPackagesOfInstalledPackages[$row['excludedPackage']],
                     $row['excludedPackageVersion'],
                     '>'