From d8a0196d87b651310c0eccbb201f6315b6af9d16 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 26 Jan 2016 16:08:20 +0100 Subject: [PATCH] [BUGFIX] feedit: Double encoding of labels Translated labels containing UTF-8 characters were double-encoded in frontend editing. extGetLL() already runs htmlspecialchars() on labels, so we do not have to do that again in FrontendEditPanel. This fixes the titles of the admin panel buttons. Also, since we can expect all pages to be UTF-8 now, we can drop the forced conversion of UTF-8 characters to XML entities. This fixes the confirmation popup texts. Resolves: #63131 Releases: master, 7.6 Change-Id: I49faff20ff4da8434868534d566c0d3da85e30c6 Reviewed-on: https://review.typo3.org/46247 Reviewed-by: Daniel Goerz Tested-by: Daniel Goerz Reviewed-by: Christian Weiske Tested-by: Christian Weiske Reviewed-by: Susanne Moog Tested-by: Susanne Moog --- Classes/FrontendEditPanel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index b1afca9..7968218 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -111,14 +111,14 @@ class FrontendEditPanel $panel .= $this->backendUser->adminPanel->ext_makeToolBar(); } if (isset($allow['edit'])) { - $icon = '' . $this->iconFactory->getIcon('actions-document-open', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-document-open', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'edit', $dataArr['_LOCALIZED_UID'] ? $table . ':' . $dataArr['_LOCALIZED_UID'] : $currentRecord); } // Hiding in workspaces because implementation is incomplete if (isset($allow['move']) && $sortField && $this->backendUser->workspace === 0) { - $icon = '' . $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'up'); - $icon = '' . $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'down'); } // Hiding in workspaces because implementation is incomplete @@ -134,12 +134,12 @@ class FrontendEditPanel } if (isset($allow['new'])) { if ($table === 'pages') { - $icon = '' + $icon = '' . $this->iconFactory->getIcon('actions-page-new', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, ''); } else { - $icon = '' + $icon = '' . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, '', $newUID); @@ -148,7 +148,7 @@ class FrontendEditPanel // Hiding in workspaces because implementation is incomplete // Hiding for localizations because it is unknown what should be the function in that case if (isset($allow['delete']) && $this->backendUser->workspace === 0 && !$dataArr['_LOCALIZED_UID']) { - $icon = '' + $icon = '' . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'delete', '', $this->backendUser->extGetLL('p_deleteConfirm'));