From 0a990a3f4194996915b4cfae463fe37dbbffbe59 Mon Sep 17 00:00:00 2001 From: Stefan Neufeind Date: Wed, 5 Feb 2014 12:52:05 +0100 Subject: [PATCH] [TASK] PHP-functionality instead of GeneralUtility::deHSCentities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use native PHP-functionality provided by htmlspecialchars() with a parameter since PHP 5.2.3 to prevent double-encoding instead of calling deHSCentities(). Change-Id: I2863181259046f16b554770a3f1ed8b03112fedf Resolves: #50449 Releases: 6.2 Reviewed-on: https://review.typo3.org/22580 Reviewed-by: Markus Klein Tested-by: Markus Klein Reviewed-by: Alexander Opitz Tested-by: Alexander Opitz Reviewed-by: Pascal Dürsteler Reviewed-by: Stefan Froemken Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 5a9a10a..9ded0ff 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -183,7 +183,7 @@ class FrontendEditPanel { $GLOBALS['TSFE']->set_no_cache('Display frontend edit icons', TRUE); $style = $conf['styleAttribute'] ? ' style="' . htmlspecialchars($conf['styleAttribute']) . '"' : ''; $iconTitle = $this->cObj->stdWrap($conf['iconTitle'], $conf['iconTitle.']); - $iconImg = $conf['iconImg'] ? $conf['iconImg'] : ''; + $iconImg = $conf['iconImg'] ? $conf['iconImg'] : ''; $nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0; $adminURL = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir; $icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . 'alt_doc.php?edit[' . $table . '][' . $editUid . ']=edit&columnsOnly=' . rawurlencode($fieldList) . '&noView=' . $nV . $addUrlParamStr);