Actions
Bug #19246
closedtypo3ajax::renderAsXML does not always render XML
Start date:
2008-08-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Files
Actions