Skip to content

The XML Utility.escape method does not treat control characters properly #3014

Closed
@scabug

Description

@scabug

Control characters (other than \r, \n and \t) are illegal in XML. The Utility.escape method does not filter these characters, leading to illegal XML.

The enclosed patch filters control characters from XML output and improves performance over the 2.7.7 implementation by 3x and the 2.8 implementation by 4x (as benchmarked by the attached file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions