vitoriabentes opened a new pull request, #4461: URL: https://github.com/apache/logging-log4j2/pull/4461
Fixes #4460. HTML escaping in `EncodingPatternConverter` used `StringBuilder.replace` for each special character, shifting the rest of the buffer each time. This made escaping inputs with many special characters quadratic. This change writes escape sequences in place and adds a test for a large input. Testing: - `mvn -pl log4j-core-test -am '-Dtest=EncodingPatternConverterTest' '-Dsurefire.failIfNoSpecifiedTests=false' test` — passed. -- 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]
