You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2022/06/23 18:09:14 UTC

[tomcat-connectors] branch main updated: IIS: Fix non-empty check for the Translate header.

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

rjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 3e1a20870 IIS: Fix non-empty check for the Translate header.
3e1a20870 is described below

commit 3e1a20870c26d9181d7296a436ef4104bcb8685e
Author: Rainer Jung <ra...@kippdata.de>
AuthorDate: Thu Jun 23 20:09:03 2022 +0200

    IIS: Fix non-empty check for the Translate header.
---
 native/iis/jk_isapi_plugin.c      | 2 +-
 xdocs/miscellaneous/changelog.xml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/native/iis/jk_isapi_plugin.c b/native/iis/jk_isapi_plugin.c
index 303febd7f..96be7c48c 100644
--- a/native/iis/jk_isapi_plugin.c
+++ b/native/iis/jk_isapi_plugin.c
@@ -1887,7 +1887,7 @@ static DWORD handle_notify_event(PHTTP_FILTER_CONTEXT pfc,
          * that the extension proc will be called.
          * This allows the servlet to handle 'Translate: f'.
          */
-        if (translate && &translate) {
+        if (translate != NULL && *translate != '\0') {
             if (!pfp->AddHeader(pfc, TOMCAT_TRANSLATE_HEADER_NAME, translate)) {
                 jk_log(logger, JK_LOG_ERROR,
                        "error while adding Tomcat-Translate headers");
diff --git a/xdocs/miscellaneous/changelog.xml b/xdocs/miscellaneous/changelog.xml
index 83105069c..6cd4e658d 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -42,6 +42,9 @@
 </section>
 <section name="Changes between 1.2.48 and 1.2.49">
   <changelog>
+    <fix>
+      IIS: Fix non-empty check for the Translate header. (rjung)
+    </fix>
     <update>
       Remove support for the Netscape / Sun ONE / Oracle iPlanet Web Server as
       the product has been retired. (markt)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org