Issue Bug Closed

#19246typo3ajax::renderAsXML does not always render XML

Francois Suter 08/22/08, 22:05 updated 10/02/18, 12:29

Description

The typo3ajax class is designed to handle response data for AJAX calls and return it in a variety of formats. However the renderAsXML method does not check that it has valid XML to return.

The solution is to check the input for XML validity. If it’s not valid XML, it means it’s an array and t3lib_div::array2xml is called as a substitute to produce a valid XML response.

(issue imported from #M9217)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.