From fcc4e5b56dee9b99b71bcd4f855a37d2ca0acdc1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 11 Oct 2011 20:44:02 +0200 Subject: [PATCH] Fixed errors if storing serializes objects --- .../system/package/PackageInstallationFormManager.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php index 6468bf7b67..4273618b9d 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php @@ -85,7 +85,7 @@ abstract class PackageInstallationFormManager { $statement->execute(array( $queue->queueID, $document->getName(), - serialize($document) + base64_encode(serialize($document)) )); } @@ -102,7 +102,7 @@ abstract class PackageInstallationFormManager { AND formName = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( - serialize($document), + base64_encode(serialize($document)), $queue->queueID, $document->formName )); @@ -140,7 +140,7 @@ abstract class PackageInstallationFormManager { $row = $statement->fetchArray(); if ($row) { - $document = unserialize($row['document']); + $document = unserialize(base64_decode($row['document'])); return $document; } -- 2.20.1