Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 3, 2024
1 parent 52b4880 commit a155d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/commons/net/HTTPUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a155d97

Please sign in to comment.