Skip to content

Commit

Permalink
Replacing rawEncode with encodeEachPathComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahad Mammadov committed Dec 11, 2024
1 parent eff06a0 commit e2adb50
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ THE SOFTWARE.
</thead>
<j:forEach var="f" items="${it.failedTests}" varStatus="i">
<tr>
<j:set var="rawPath" value="${f.getRelativePathFrom(it)}" />
<j:set var="encodedRelativePath">
${rawPath.replace('[', '%5B').replace(']', '%5D')}
</j:set>
<td class="pane no-wrap"><t:failed-test result="${f}" url="${encodedRelativePath}"/></td>
<td class="pane no-wrap">
<t:failed-test result="${f}">
<j:invokeStatic var="encodedRelativePath" className="hudson.Util" method="encodeEachPathComponent">
<j:arg value="${f.getRelativePathFrom(it)}" />
</j:invokeStatic>
<a href="${encodedRelativePath}">${f.name}</a>
</t:failed-test>
</td>
<td class="pane no-wrap" style="text-align:right;" data="${f.duration}">
${f.durationString}
</td>
Expand Down

0 comments on commit e2adb50

Please # to comment.