From fd2f91ae4200f6c74935e371d548bda52956565d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 3 Jan 2012 19:01:02 +0100 Subject: [PATCH] Forcing case-sensitive PIP names --- .../system/package/PackageInstallationDispatcher.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 701a88d8f7..50885b7c2b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -310,7 +310,7 @@ class PackageInstallationDispatcher { // fetch all pips associated with current PACKAGE_ID and include pips // previously installed by current installation queue - $sql = "SELECT className + $sql = "SELECT pluginName, className FROM wcf".WCF_N."_package_installation_plugin WHERE pluginName = ?"; $statement = WCF::getDB()->prepareStatement($sql); @@ -320,7 +320,7 @@ class PackageInstallationDispatcher { $row = $statement->fetchArray(); // PIP is unknown - if (!$row) { + if (!$row || (strcmp($nodeData['pip'], $row['pluginName']) !== 0)) { throw new SystemException("unable to find package installation plugin '".$nodeData['pip']."'"); } -- 2.20.1