From: Alexander Ebert Date: Tue, 11 Oct 2011 18:44:02 +0000 (+0200) Subject: Fixed errors if storing serializes objects X-Git-Tag: 2.0.0_Beta_1~1710 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcc4e5b56dee9b99b71bcd4f855a37d2ca0acdc1;p=GitHub%2FWoltLab%2FWCF.git Fixed errors if storing serializes objects --- 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; }