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 0cd284fef IIS: Fix non-empty check for the Translate header.
0cd284fef is described below
commit 0cd284fefcdbe2d502fab7d834acbc0914d3775e
Author: Rainer Jung <[email protected]>
AuthorDate: Sat May 28 00:11:55 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 c0d7a4353..880224568 100644
--- a/native/iis/jk_isapi_plugin.c
+++ b/native/iis/jk_isapi_plugin.c
@@ -1886,7 +1886,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 67dbc97b7..6f6b91752 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>
Common: Add a request id to error log lines. To get a useful
request id for the Apache web server, mod_unique_id should
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]