Skip to content

Commit 61fbd20

Browse files
committed
chore: Fix compilation error
1 parent adb4660 commit 61fbd20

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

server-ee

Submodule server-ee updated from c16c3c4 to 96504a1

server-plugin/server-plugin-report-gtest/src/main/java/io/onedev/server/plugin/report/gtest/GTestReportParser.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import io.onedev.server.web.page.project.blob.ProjectBlobPage;
2525
import io.onedev.server.web.page.project.blob.render.BlobRenderer;
2626

27+
import static org.unbescape.html.HtmlEscape.escapeHtml5;
28+
2729
public class GTestReportParser {
2830

2931
public static List<TestCase> parse(Build build, Document doc) {
@@ -121,8 +123,8 @@ private static Component renderMessage(String componentId, Build build,
121123
String url = RequestCycle.get().urlFor(ProjectBlobPage.class, params).toString();
122124
var html = String.format("<a href='%s'>%s</a><br>%s",
123125
url,
124-
HtmlEscape.escapeHtml5(StringUtils.substringBefore(message, "\n").trim()),
125-
HtmlEscape.escapeHtml5(StringUtils.substringAfter(message, "\n")));
126+
escapeHtml5(StringUtils.substringBefore(message, "\n").trim()),
127+
escapeHtml5(StringUtils.substringAfter(message, "\n")));
126128
return new Label(componentId, html).setEscapeModelStrings(false);
127129
} else if (message != null) {
128130
return new Label(componentId, message);

0 commit comments

Comments
 (0)