From a155d97b3354125574fd443e604c90cd362c55d8 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Tue, 3 Dec 2024 11:04:45 +0100 Subject: [PATCH] cleanup --- core/src/main/java/lucee/commons/net/HTTPUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/lucee/commons/net/HTTPUtil.java b/core/src/main/java/lucee/commons/net/HTTPUtil.java index 6fcc21a014..d33de5f779 100755 --- a/core/src/main/java/lucee/commons/net/HTTPUtil.java +++ b/core/src/main/java/lucee/commons/net/HTTPUtil.java @@ -364,7 +364,7 @@ public static String escapePathValue(String str, boolean encodeOnlyWhenNecessary boolean needsEncoding = ReqRspUtil.needEncoding(str, false); // in a path, space should be encoded as %20, URLEncoder.encode does this if (!hasPlus && !needsEncoding) return str; - else if (hasPlus && !needsEncoding) return StringUtil.replace(str, "+", "%20", false); + else if (hasPlus && !needsEncoding) return StringUtil.replace(str, "+", "%20", false); } PageContextImpl pc = (PageContextImpl) ThreadLocalPageContext.get();