Fix downgrade prevention in PackageValidationArchive
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Nov 2022 09:41:54 +0000 (10:41 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Nov 2022 09:44:22 +0000 (10:44 +0100)
commit3aee45351c1c5584da3864635b0cfa25225ff3dc
treecb9f0886326db8db1fc5dbd5b5384c8a0aca9ba7
parentd4673b8d7754c60d0f782dcbc2349ee41601922b
Fix downgrade prevention in PackageValidationArchive

This regressed in 5590bc1425b03e1f8d91610b7d3c52ccccb7d338, because
`PackageArchive::isValidUpdate()` checked not just the existence of the
instructions, but also the version numbers.

In practice this regression is only visible for wildcard update instructions,
because otherwise a valid instruction will simply not exist.
wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php