Always check exclusions in PackageUpdateAction::createQueue()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Apr 2022 10:23:15 +0000 (12:23 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Apr 2022 10:23:15 +0000 (12:23 +0200)
commit111b8dabef769faf4ed496acaa69d7e9da76c1e3
treee5d573ba75ef899ff225947095675a03d5995476
parent69f3eaa967ec255698bad9df3ce47eca4ac84b86
Always check exclusions in PackageUpdateAction::createQueue()

Ever since the method checked for package exclusions in
1d7f1d205ee64fd2723877c1f296c592518e516d it only applied the check to updates,
not to fresh installs. It's not clear why it did so, I assume this to be an
oversight.

Change this to always run the exclusion check, otherwise exclusions might be
circumvented using PackageUpdateAction::prepareInstallation() with a
package+version combination that would regularly be excluded.
wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php