[BUGFIX] Serialize expression in switch viewhelper
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / CaseViewHelper.php
index 35ddb62..b586bb5 100644 (file)
@@ -36,7 +36,7 @@ class CaseViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
                if (is_null($value) && $default === FALSE) {
                        throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception('The case View helper must have either value or default argument', 1382867521);
                }
-               $switchExpression = $viewHelperVariableContainer->get(\TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper::class, 'switchExpression');
+               $switchExpression = unserialize($viewHelperVariableContainer->get(\TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper::class, 'switchExpression'));
 
                // non-type-safe comparison by intention
                if ($default === TRUE || $switchExpression == $value) {