Skip to content

Commit

Permalink
Merge pull request #3054 from SCADA-LTS/fix/#3049_Fixed_visible_point…
Browse files Browse the repository at this point in the history
…_name_in_legend_report_for_escape_characters

#3049 Fixed visible point name in legend report for escape characters:
  • Loading branch information
Limraj authored Nov 25, 2024
2 parents 47ec4e2 + 155e663 commit 05c83d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WebContent/WEB-INF/ftl/report/reportChart.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

<td class="stats">
<table>
<tr><td colspan="2" class="pointName">${point.name}</td></tr>
<tr><td colspan="2" class="pointName">${security.escapeHtml(point.name)}</td></tr>
<tr>
<td class="label"><@fmt key="reports.dataType"/></td>
<td>${point.dataTypeDescription}</td>
Expand Down
2 changes: 1 addition & 1 deletion src/com/serotonin/mango/vo/report/SeriesIdentifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public int hashCode() {

@Override
public String toString() {
return XssProtectHtmlEscapeUtils.escape(name);
return name;
}
}

0 comments on commit 05c83d2

Please sign in to comment.