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

Improve XML sanitization in advanced mode to fix broken entities. #375

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

jbaiter
Copy link
Member

@jbaiter jbaiter commented Jan 15, 2024

Previously we'd only check if a candidate entity was properly terminated by a semicolon, which missed some broken XML we have in legacy projects. The check is now much more thorough and mimicks much of the process the parser itself does when parsing entities.

@jbaiter jbaiter requested a review from schmika January 15, 2024 09:16
@jbaiter jbaiter force-pushed the sanitization-improvements branch from cd525bb to a9be01c Compare January 15, 2024 09:17
Previously we'd only check if a candidate entity was properly terminated
by a semicolon, which missed some broken XML we have in legacy projects.
The check is now much more thorough and mimicks much of the process the
parser itself does when parsing entities.
@jbaiter jbaiter force-pushed the sanitization-improvements branch from a9be01c to 784454e Compare January 15, 2024 09:40
@jbaiter jbaiter requested a review from bitzl January 15, 2024 10:38
@jbaiter jbaiter merged commit 26c8c57 into main Jan 15, 2024
6 checks passed
@morpheus-87 morpheus-87 deleted the sanitization-improvements branch February 8, 2024 09:57
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

Successfully merging this pull request may close these issues.

2 participants