Skip to content
Snippets Groups Projects
Commit 9b4e2e5e authored by Andreas Wolf's avatar Andreas Wolf Committed by Stefan Neufeind
Browse files

[BUGFIX] Empty array not encoded as empty XML tag

When encoding an empty array, an empty line with indentation was
created. If the <el> tag had a proper type="array" attribute, it could
still be decoded to an array again. If not, it was decoded to a string,
leading to errors e.g. when trying to traverse it.

The fix is to include an empty element now, which will be decoded to
an empty array again then.

Change-Id: Ia78adc1e7e81a943cdbc94f3cfa19b36442c430f
Resolves: #71394
Releases: 6.2, master
Reviewed-on: https://review.typo3.org/44599


Reviewed-by: default avatarJuan Manuel Vergés Solanas <juanmanuel.vergessolanas@gmail.com>
Tested-by: default avatarJuan Manuel Vergés Solanas <juanmanuel.vergessolanas@gmail.com>
Reviewed-by: default avatarHans Höchtl <jhoechtl@gmail.com>
Tested-by: default avatarHans Höchtl <jhoechtl@gmail.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent dea3b005
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment