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

Tobias Liebig mail_typo3 at etobi.de
Thu May 27 10:21:38 CEST 2010



Am 26.05.10 19:14, schrieb Oliver Hader:
> Looks good: +1 by reading and testing

thanks, i'm going to commit in a few minutes.

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

you're right.

The problem was that a "$1" within the typoscript was mis-interpreted as 
a regexp term in preg_replace.
Now i use this behavior as an advantage and pass a "$1" to the 
getCodeEditor-method, which will be replaced by the actual typoscript 
code later (by preg_replace). So i do not need to deal with the 
typoscript code itself and struggle with special chars or something.

regards
   tobias


More information about the TYPO3-team-core mailing list