Project

General

Profile

Actions

Bug #19246

closed

typo3ajax::renderAsXML does not always render XML

Added by Francois Suter over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

bug9217.patch (681 Bytes) bug9217.patch Administrator Admin, 2008-08-22 22:12
Actions #1

Updated by Francois Suter almost 16 years ago

After discussion in the core list, it was decided this was not a bug, since the behavior typo3ajax::renderAsXML() is properly documented in Core APIs.

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF