Project

General

Profile

Actions

Bug #19338

closed

XML Problems with PHP5 and libxml 2.7.1

Added by Jeff Segars over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2008-09-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using PHP5 with libxml 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.

I'm attaching a one line patch that enables CDATA within flexform XML. There are several other places in the core that also use XML but the flexform part seems to be the most prominent.

(issue imported from #M9359)


Files

class.t3lib_flexformtools.php.diff (411 Bytes) class.t3lib_flexformtools.php.diff Administrator Admin, 2008-09-16 17:06
9359_v4.diff (3.41 KB) 9359_v4.diff Administrator Admin, 2009-03-18 22:36

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Task #102146: Remove TYPO3_CONF_VARS BE/flexformForceCDATAClosed2023-10-11

Actions
Has duplicate TYPO3 Core - Bug #20012: RTE in Flexform with TV stripes < > (brackets) from tags as br, pClosedOliver Hader2009-02-13

Actions
Has duplicate TYPO3 Core - Bug #19433: HTML tags are removed in RTE contentClosedOliver Hader2008-10-08

Actions
Actions

Also available in: Atom PDF