mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-25 15:46:09 +01:00
[TASK] PHP-functionality instead of GeneralUtility::deHSCentities
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
This commit is contained in:
parent
2ef26266d6
commit
0a990a3f41
1 changed files with 1 additions and 1 deletions
|
@ -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'] : '<img ' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg(TYPO3_mainDir, 'gfx/edit_fe.gif', 'width="11" height="12" border="0" align="top" ') . ' title="' . GeneralUtility::deHSCentities(htmlspecialchars($iconTitle)) . '"' . $style . ' class="frontEndEditIcons" alt="" />';
|
||||
$iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img ' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg(TYPO3_mainDir, 'gfx/edit_fe.gif', 'width="11" height="12" border="0" align="top" ') . ' title="' . htmlspecialchars($iconTitle, ENT_COMPAT, 'UTF-8', FALSE) . '"' . $style . ' class="frontEndEditIcons" alt="" />';
|
||||
$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);
|
||||
|
|
Loading…
Reference in a new issue