Skip to content

pkg/xml: escape reserved characters in element text#2034

Open
AruneshDwivedi wants to merge 1 commit into
Altinity:masterfrom
AruneshDwivedi:fix/xml-escape-special-chars
Open

pkg/xml: escape reserved characters in element text#2034
AruneshDwivedi wants to merge 1 commit into
Altinity:masterfrom
AruneshDwivedi:fix/xml-escape-special-chars

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

writeValue injected element text verbatim, so passwords or values containing &, < or > produced invalid users.xml and ClickHouse failed to start. Escape those characters so the rendered document stays well-formed.

Used AI to help identify and draft this fix — reviewed and tested before submitting.

writeValue injected element text verbatim, so passwords or values containing &, < or > produced invalid users.xml and ClickHouse failed to start. Escape those characters so the rendered document stays well-formed.

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>
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.

1 participant