[TYPO3-core] RFC: Bug #9217: typo3ajax::renderAsXML does not always render XML
Francois Suter
fsuter at cobweb.ch
Fri Aug 22 22:08:32 CEST 2008
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=9217
Branches:
TYPO3_4-2 and trunk
Problem:
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 if it has valid XML to return.
Solution:
Check the response content 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.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug9217.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080822/55f7f079/attachment.txt
More information about the TYPO3-team-core
mailing list