This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b7bde55 Allow a HTMLLayout title to contain characters special to 
HTML (#513)
4b7bde55 is described below

commit 4b7bde555ac1610082ce504e9969f7fca39aad5f
Author: Stephen Webb <[email protected]>
AuthorDate: Tue Jul 22 11:33:19 2025 +1000

    Allow a HTMLLayout title to contain characters special to HTML (#513)
    
    * Update change report
---
 src/main/cpp/htmllayout.cpp           | 2 +-
 src/site/markdown/change-report-gh.md | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main/cpp/htmllayout.cpp b/src/main/cpp/htmllayout.cpp
index ed6e61d7..cce9c1dc 100644
--- a/src/main/cpp/htmllayout.cpp
+++ b/src/main/cpp/htmllayout.cpp
@@ -183,7 +183,7 @@ void HTMLLayout::appendHeader(LogString& output, Pool& p)
        output.append(LOG4CXX_STR("<head>"));
        output.append(LOG4CXX_EOL);
        output.append(LOG4CXX_STR("<title>"));
-       output.append(m_priv->title);
+       Transform::appendEscapingTags(output, m_priv->title);
        output.append(LOG4CXX_STR("</title>"));
        output.append(LOG4CXX_EOL);
        output.append(LOG4CXX_STR("<style type=\"text/css\">"));
diff --git a/src/site/markdown/change-report-gh.md 
b/src/site/markdown/change-report-gh.md
index 5a64f442..1a7d3b8e 100644
--- a/src/site/markdown/change-report-gh.md
+++ b/src/site/markdown/change-report-gh.md
@@ -57,9 +57,15 @@ Release 1.5.0 includes the following new features:
    \[[#488](https://github.com/apache/logging-log4cxx/pull/488)\]
 * TelnetAppender can now deliver messages when the socket is in a TIME_WAIT 
state
    \[[#495](https://github.com/apache/logging-log4cxx/pull/495)\]
+* TelnetAppender can be restricted to specific network
+   \[[#498](https://github.com/apache/logging-log4cxx/pull/498)\]
 
 The following issues have been addressed:
 
+* HTML output was illformed when the title contained the special HTML 
characters
+   \[[#513](https://github.com/apache/logging-log4cxx/issues/513)\]
+* JSON output illformed when a message contained certain control characters
+   \[[#512](https://github.com/apache/logging-log4cxx/issues/512)\]
 * Undefined behaviour when reloading a configuration file after calling 
LogManager::shutdown
    \[[#504](https://github.com/apache/logging-log4cxx/issues/504)\]
 * Compilation error when using gcc on MacOS

Reply via email to