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();