You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "jmestwa-coder (via GitHub)" <gi...@apache.org> on 2026/05/13 17:32:56 UTC

[PR] Preserve HTMLLayout attribute values during XML normalization [logging-log4cxx]

jmestwa-coder opened a new pull request, #666:
URL: https://github.com/apache/logging-log4cxx/pull/666

   ## Summary
   
   Fix HTMLLayout attribute serialization to preserve logger and thread values containing normalization-sensitive characters.
   
   ## Changes
   
   - Add `Transform::appendEscapingAttribute()` for HTML/XML attribute-specific escaping
   - Use attribute escaping for `title` attributes in `HTMLLayout`
   - Preserve newline, tab, and carriage return characters using character references
   - Keep existing element body escaping behavior unchanged
   - Add regression coverage for normalization-sensitive attribute values
   
   ## Problem
   
   `HTMLLayout` previously used `appendLegalCharacters()` for quoted attribute values.
   
   Characters such as newline and tab were emitted directly into `title` attributes, allowing XML attribute normalization to alter serialized logger/thread values after parsing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Preserve HTMLLayout attribute values during XML normalization [logging-log4cxx]

Posted by "swebb2066 (via GitHub)" <gi...@apache.org>.
swebb2066 merged PR #666:
URL: https://github.com/apache/logging-log4cxx/pull/666


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org