Skip to content
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

Problem: AtoM doesn't strip control characters from inputs #1839

Open
anvit opened this issue Jul 15, 2024 · 0 comments
Open

Problem: AtoM doesn't strip control characters from inputs #1839

anvit opened this issue Jul 15, 2024 · 0 comments
Labels
Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result.

Comments

@anvit
Copy link
Contributor

anvit commented Jul 15, 2024

Current Behavior

Users are able to add control characters (such as ) both via import and via inputting text into AtoM.

Expected Behavior

These characters should not be permitted since they're meant to be non-printable, and they create problems with generating XML (and finding aids which relies on EAD XML) since XML 1.0 prohibits non-printable control characters.

Possible Solution

These characters should either be filtered out during import/input or should be stripped before they're rendered or passed on to XML.

Version used

AtoM 2.8.2

@anvit anvit added the Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result. label Jul 15, 2024
@anvit anvit changed the title Problem: AtoM doesn't prevent strip control characters from inputs Problem: AtoM doesn't strip control characters from inputs Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug A flaw in the code that causes the software to produce an incorrect or unexpected result.
Projects
None yet
Development

No branches or pull requests

1 participant