Skip to content
Snippets Groups Projects
Commit c00339aa authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Stefan Neufeind
Browse files

[BUGFIX] Show correct page title in new page tree

The page title was shown htmlescaped in the new page tree.

Resolves: #83277
Releases: master
Change-Id: I34a06e06d35d435d13d00d3d0a715a25deec384c
Reviewed-on: https://review.typo3.org/55017


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent b2d34992
Branches
Tags
No related merge requests found
...@@ -263,7 +263,7 @@ class TreeController ...@@ -263,7 +263,7 @@ class TreeController
$visibleText = $page['nav_title']; $visibleText = $page['nav_title'];
} }
if (trim($visibleText) === '') { if (trim($visibleText) === '') {
$visibleText = '[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.no_title') . ']'; $visibleText = htmlspecialchars('[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.no_title') . ']');
} }
$visibleText = GeneralUtility::fixed_lgd_cs($visibleText, (int)$this->getBackendUser()->uc['titleLen'] ?: 40); $visibleText = GeneralUtility::fixed_lgd_cs($visibleText, (int)$this->getBackendUser()->uc['titleLen'] ?: 40);
...@@ -290,7 +290,7 @@ class TreeController ...@@ -290,7 +290,7 @@ class TreeController
'tip' => htmlspecialchars($tooltip), 'tip' => htmlspecialchars($tooltip),
'hasChildren' => !empty($page['_children']), 'hasChildren' => !empty($page['_children']),
'icon' => $icon->getIdentifier(), 'icon' => $icon->getIdentifier(),
'name' => htmlspecialchars($visibleText), 'name' => $visibleText,
'nameSourceField' => $nameSourceField, 'nameSourceField' => $nameSourceField,
'alias' => htmlspecialchars($page['alias'] ?: ''), 'alias' => htmlspecialchars($page['alias'] ?: ''),
'prefix' => htmlspecialchars($prefix), 'prefix' => htmlspecialchars($prefix),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment