[TYPO3-core] FYI36: #14388: Templates with $ in content become corrupted

Oliver Hader oliver at typo3.org
Wed May 26 19:14:48 CEST 2010


Hi Tobi,

Am 25.05.10 22:09, schrieb Tobias Liebig:
> This is an SVN patch request.
> 
> Type:
> Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=14388
> 
> Branches:
> trunk, TYPO3_4-2, TYPO3_4-3
> 
> 
> Problem:
> If a TypoScript template contains $, the TypoScript code becomes corrupt
> after saving. Every $ will substituted with the whole TypoScript code.
> 
> 
> Solution:
> fix the replacement value in the preg_replace to not duplicate the
> typoscript code.
> 
> 
> Note:
> i'm going to commit on thursday morning (CET), if no one complains

Looks good: +1 by reading and testing

The t3lib_div::formatForTextarea() executed a htmlspecialchars() on the
TypoScript code, however this is also done in tx_tstemplateinfo and
delivered to the t3editor.

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader


More information about the TYPO3-team-core mailing list