Skip to content

Commit

Permalink
Replacing rawEncode with java.net.URLEncoder, this time with toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahad Mammadov committed Dec 5, 2024
1 parent 8f5b26a commit af0b19e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ THE SOFTWARE.
<j:set var="encodedRelativePath">
<j:forEach items="${rawPath.split('/')}" var="component" varStatus="i">
<j:trim var="trimmedComponent" value="${component}" />
<j:invokeStatic var="encodedComponent" className="hudson.Util" method="rawEncode">
<j:invokeStatic var="encodedComponent" className="java.net.URLEncoder" method="encode">
<j:arg value="${trimmedComponent.toString()}" />
<j:arg value="UTF-8" />
</j:invokeStatic>
<j:if test="${i.index > 0}">/</j:if>${encodedComponent}
</j:forEach>
Expand Down

0 comments on commit af0b19e

Please sign in to comment.