fizzbeom commented on PR #4421:
URL: https://github.com/apache/logging-log4j2/pull/4421#issuecomment-6680527997

   > why should you add `htmllayout` test also here from #4422
   
   The reason is the same as for `GelfLayout`: `HtmlLayout` escapes every 
user-controlled field with `Transform.escapeHtmlTags`, but no test checked this 
at the layout level, only `Transform` itself. The test in #4422 puts HTML 
markup, attribute-breaking quotes and an invalid XML character into the thread 
name, logger name, source file, message, NDC, MDC and exception, and checks 
that each is rendered escaped, in element content and in `title` attributes. It 
fails if the `<` or `"` escape or the invalid-character replacement is removed, 
or if the escape call for the MDC field is dropped. If you think it isn't worth 
it, I'm fine closing #4422.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to