[BUGFIX] Fixes rendering of page content titles 06/48106/3
authorTomita Militaru <militarutomita@gmail.com>
Thu, 12 May 2016 15:41:54 +0000 (17:41 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 18 May 2016 11:14:54 +0000 (13:14 +0200)
Removes the htmlspecialchars from the rendering of
page content titles / tooltips.

Resolves: #76149
Releases: master, 7.6
Change-Id: Ia5ad3df56101fe3962e4a5814df53dabdf5a4bbc
Reviewed-on: https://review.typo3.org/48106
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php

index bb5cf7b..b785206 100644 (file)
@@ -191,6 +191,7 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
                 $selected = ' class="active"';
             }
             // Putting list element HTML together:
+            // Output of BackendUtility::getRecordTitle() is already hsc'ed
             $out .= '
                                <li' . $selected . '>
                                        <span class="list-tree-group">
@@ -199,7 +200,7 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
                                                </span>
                                                <span class="list-tree-title">
                                                        <a href="#" class="t3js-pageLink" data-id="' . (int)$expPageId . '" data-anchor="#' . (int)$row['uid'] . '">
-                                                               ' . htmlspecialchars(BackendUtility::getRecordTitle('tt_content', $row, true)) . '
+                                                               ' . BackendUtility::getRecordTitle('tt_content', $row, true) . '
                                                        </a>
                                                </span>
                                        </span>