Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,9 @@ private void printInstallationLogsSection(HtmlWriter writer, RequestParameters r
return;
}

String sanitizedCurrentPath = escapeHtml4(currentPath);
for (AcToolExecution acToolExecution : acToolExecutions.values()) {
String linkToLog = currentPath + "?" + PARAM_SHOW_LOG_ID + "=" + acToolExecution.getId();
String linkToLog = sanitizedCurrentPath + "?" + PARAM_SHOW_LOG_ID + "=" + acToolExecution.getId();
String downloadLinkToLog = basePath + "/" + SUFFIX_DOWNLOAD_LOG + "?" + PARAM_SHOW_LOG_ID + "=" + acToolExecution.getId();
writer.tr();
writer.openTd();
Expand Down Expand Up @@ -610,7 +611,7 @@ private void printInstallationLogsSection(HtmlWriter writer, RequestParameters r
String logHtml = acHistoryService.getLogFromHistory(reqParams.showLogId, true, reqParams.showLogVerbose, MAX_LINE_WIDTH);

writer.openTable("logTable");
writer.tableHeader(logLabel, 1, false);
writer.tableHeader(logLabel, 1);
writer.tr();
writer.openTd();
writer.println(logHtml);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ void closeTable() {
pw.println("</table>");
}

void tableHeader(String title, int colspan, boolean escape) {
tr();
pw.print("<th " + (isTouchUi ? " is='coral-table-headercell'" : " class='content container'") + " colspan='" + colspan + "'>");
pw.print(escape ? escapeHtml4(title) : title);
pw.println("</th>");
closeTr();
}

void print(String s) {
pw.print(s);
}
Expand Down Expand Up @@ -88,7 +80,11 @@ void closeTr() {
}

void tableHeader(String title, int colspan) {
tableHeader(title, colspan, true);
tr();
pw.print("<th " + (isTouchUi ? " is='coral-table-headercell'" : " class='content container'") + " colspan='" + colspan + "'>");
pw.print(escapeHtml4(title));
pw.println("</th>");
closeTr();
}

}
Loading