[TYPO3-core] RFC: #9359: XML Problems with PHP5 and libxml
Steffen Kamper
info at sk-typo3.de
Tue Mar 17 09:54:05 CET 2009
Hi,
This is an SVN patch request.
Type: Bug
Bugtracker reference: http://bugs.typo3.org/view.php?id=10607
Branches: trunk, 4.2
Problem:
When using PHP5 with libxml (eg 2.7.1), HTML entities are stripped from
any XML content (FCEs, Flexforms, etc) when its saved or retrieved.
For things like RTE content, this means that "<LINK 43>Page with UID
43</LINK>" is not actually transformed into a link but instead renders
in the frontend at "LINK 43Page with UID 43/LINK"
This also affects Flexible Content Elements if HTML entities were used
for Typoscript assignments, such as "10 < styles.content.get". A
previous working FCE and the assignment operator removed and thus
renders no content at all.
For more information on the bug, see
https://qa.mandriva.com/show_bug.cgi?id=43486 [^] and
http://bugs.php.net/bug.php?id=45996. [^]
It remains to be seen how widespread this issue will become or how
quickly PHP will patch it, but one helpful option for new sites is to
enable the useCDATA option from t3lib_div::array2xml. This will cause
TYPO3 to insert CDATA anytime there are html entities within the
content. Once CDATA is present, the new content will work as expected.
Solution:
Force use of CDATA.
The patch is originally from Jeff, i had the same problem where this
patch solved the problem, and in the BT entry you find other users where
the patch solved the problems.
vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9359.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090317/b8938920/attachment.txt
More information about the TYPO3-team-core
mailing list