From d87828317b8c3b21e75975e58a41f3b388b30685 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 24 Nov 2013 21:16:03 +0100 Subject: [PATCH] version_compare fails if whitespaces are present --- .../lib/system/package/PackageInstallationDispatcher.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index ee775bd266..f7a9392f15 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -268,7 +268,7 @@ class PackageInstallationDispatcher { $package = $this->getPackage(); // check if we're doing an iterative update of the same package if ($this->previousPackageData !== null && $this->getPackage()->package == $this->previousPackageData['package']) { - if (version_compare($this->getPackage()->packageVersion, $this->previousPackageData['packageVersion'], '<')) { + if (Package::compareVersion($this->getPackage()->packageVersion, $this->previousPackageData['packageVersion'], '<')) { // fake package to simulate the package version required by current archive $this->getPackage()->setPackageVersion($this->previousPackageData['packageVersion']); } -- 2.20.1