[BUGFIX] sys_news on login with twice hsc 42/30642/2
authorAlexander Opitz <opitz.alexander@googlemail.com>
Tue, 10 Jun 2014 12:10:02 +0000 (14:10 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 12 Jun 2014 12:13:06 +0000 (14:13 +0200)
Set RteHtmlParser in dontHSC_rte modus to fix garbled output.

Resolves: #25188
Releases: 6.2, 6.1
Change-Id: Ib01c3f6dcf1729b1979003c207aa622cc5c9b5c3
Reviewed-on: https://review.typo3.org/30642
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/backend/Classes/Controller/LoginController.php

index 9b20981..1d40d3b 100644 (file)
@@ -536,6 +536,8 @@ class LoginController {
                if (is_array($systemNews) && count($systemNews) && !GeneralUtility::_GP('loginRefresh')) {
                        /** @var $htmlParser \TYPO3\CMS\Core\Html\RteHtmlParser */
                        $htmlParser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\RteHtmlParser');
+                       $htmlParser->procOptions['dontHSC_rte'] = TRUE;
+
                        // Get the main news template, and replace the subpart after looped through
                        $newsContent = HtmlParser::getSubpart($GLOBALS['TBE_TEMPLATE']->moduleTemplate, '###LOGIN_NEWS###');
                        $newsItemTemplate = HtmlParser::getSubpart($newsContent, '###NEWS_ITEM###');