[BUGFIX] EXT:tstemplate: Removed double escaping of page name 46/51046/6
authorMichael Oehlhof <typo3@oehlhof.de>
Mon, 26 Dec 2016 22:01:57 +0000 (23:01 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 7 Jan 2017 20:17:18 +0000 (21:17 +0100)
Because the escaping takes place when the PageZero template is rendered
by the view, there is no need to escape it in the controller.

Resolves: #79096
Resolves: #79060
Releases: master
Change-Id: I3e06e2829e0d1d916b941329f835b4e7f5e29398
Reviewed-on: https://review.typo3.org/51046
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php

index 72bd8fb..473a860 100644 (file)
@@ -596,7 +596,7 @@ page.10.value = HELLO WORLD!
             array_shift($rlArr);
         }
         $cEl = current($rlArr);
-        $pArray[$cEl['uid']] = htmlspecialchars($cEl['title']);
+        $pArray[$cEl['uid']] = $cEl['title'];
         array_shift($rlArr);
         if (!empty($rlArr)) {
             $key = $cEl['uid'] . '.';