Project

General

Profile

Actions

Bug #78752

closed

xml2Array should trim() value before processing

Added by Christian Kuhn over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2016-11-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Annoying, especially in unit tests:

            'pi_flexform' => '
                <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
                <T3FlexForms>
                    <data>
                        <sheet index="sDEF">
                            <language index="lDEF">
                                <field index="settings.persistenceIdentifier">
                                    <value index="vDEF">egon</value>
                                </field>
                            </language>
                        </sheet>
                    </data>
                </T3FlexForms>
            ',

above does NOT work.

            'pi_flexform' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
                <T3FlexForms>
                    <data>
                        <sheet index="sDEF">
                            <language index="lDEF">
                                <field index="settings.persistenceIdentifier">
                                    <value index="vDEF">egon</value>
                                </field>
                            </language>
                        </sheet>
                    </data>
                </T3FlexForms>
            ',

works.

Actions

Also available in: Atom PDF