Skip to content

Commit

Permalink
https://github.com/jenkinsci/jenkins/pull/7830#issuecomment-1512028612
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Apr 17, 2023
1 parent 00a1245 commit 275eebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/widgets/BuildListTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package jenkins.widgets;

import hudson.Functions;
import hudson.Util;
import hudson.model.BallColor;
import hudson.model.Run;
Expand All @@ -42,7 +43,7 @@ public class BuildListTable extends RunListProgressiveRendering {
element.put("url", build.getUrl());
element.put("iconName", build.getIconColor().getIconName());
element.put("parentUrl", build.getParent().getUrl());
element.put("parentFullDisplayName", build.getParent().getFullDisplayName());
element.put("parentFullDisplayName", Functions.breakableString(Functions.escape(build.getParent().getFullDisplayName())));
element.put("displayName", build.getDisplayName());
element.put("timestampString", build.getTimestampString());
element.put("timestampString2", build.getTimestampString2());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ window.displayBuilds = function (data) {
a1.classList.add("jenkins-table__link", "model-link");
a1.href = rootUrl + "/" + e.parentUrl;
var span1 = document.createElement("span");
span1.textContent = e.parentFullDisplayName;
// TODO port Functions#breakableString to JavaScript and use .textContent rather than .innerHTML
span1.innerHTML = e.parentFullDisplayName;
a1.appendChild(span1);
td2.appendChild(a1);
var a2 = document.createElement("a");
Expand Down

0 comments on commit 275eebc

Please sign in to comment.