From 9a5b47974e624f82283cbb7bb7fea21192814956 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 31 Jan 2018 13:36:25 +0100 Subject: [PATCH] Missing check for accessible versions --- .../files/lib/system/package/PackageUpdateDispatcher.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 862b5b9f27..56d7302cde 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -751,11 +751,13 @@ class PackageUpdateDispatcher extends SingletonFactory { ON (pus.packageUpdateServerID = pu.packageUpdateServerID) WHERE pu.package = ? AND puv.packageVersion = ? + AND puv.isAccessible = ? AND pus.isDisabled = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([ $package, $version, + 1, 0 ]); $versions = $statement->fetchAll(\PDO::FETCH_ASSOC); -- 2.20.1