Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scabug opened this issue Feb 3, 2010 · 4 comments
Closed

Comments

@scabug
Copy link

scabug commented Feb 3, 2010

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)

@scabug
Copy link
Author

scabug commented Feb 3, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3014?orig=1
Reporter: David Pollak (dpp)
Attachments:

@scabug
Copy link
Author

scabug commented Feb 3, 2010

David Pollak (dpp) said:
Benchmark existing implementation vs. new implementation

@scabug
Copy link
Author

scabug commented Feb 3, 2010

David Pollak (dpp) said:
Patch to the 2.8 codebase

@scabug
Copy link
Author

scabug commented Feb 3, 2010

David Pollak (dpp) said:
(In r20780) Fixed XML Utility.escape method to conform to XML spec. Closes #3014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant