From 68d619e400d5850d0e917b04c4e21077ef33580a Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Sun, 20 Jul 2025 09:33:46 +0200 Subject: [PATCH] LDEV-5723 fix redirect loop - v1 / javax --- java/mod_cfml-valve/src/mod_cfml/core.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/mod_cfml-valve/src/mod_cfml/core.java b/java/mod_cfml-valve/src/mod_cfml/core.java index b72161a..4e837da 100644 --- a/java/mod_cfml-valve/src/mod_cfml/core.java +++ b/java/mod_cfml-valve/src/mod_cfml/core.java @@ -57,7 +57,7 @@ public class core extends ValveBase implements Serializable { - private String versionNumber = "1.1.11"; + private String versionNumber = "1.1.12"; // declare configurable param defaults @@ -271,7 +271,7 @@ public void invoke(Request request, Response response) throws IOException, Servl // meaning the setup did not work as expected. // We do a redirect to try again, but also try to catch eternal redirects here, by adding a url parameter. if (tcURIParams != null && tcURIParams.length() > redirectKey.length() - && tcURIParams.substring(tcURIParams.length() - 1 - redirectKey.length()) == "&"+redirectKey) { + && tcURIParams.endsWith("&"+redirectKey)) { String msg = "Host [" + tcHost + "] already exists, but new requests still land at the localhost host."; // host already exist? Skip this Valve. if (loggingEnabled) {