diff --git a/WebContent/WEB-INF/ftl/report/reportChart.ftl b/WebContent/WEB-INF/ftl/report/reportChart.ftl index 58bd21258..12f2a182e 100644 --- a/WebContent/WEB-INF/ftl/report/reportChart.ftl +++ b/WebContent/WEB-INF/ftl/report/reportChart.ftl @@ -87,7 +87,7 @@ - + @@ -121,7 +121,7 @@

${escapeHtml.escapeHtml(instance.name)}

${security.escapeHtml(instance.name)}

<@fmt key="reports.runTimeStart"/> - + diff --git a/src/com/serotonin/mango/vo/report/ReportChartCreator.java b/src/com/serotonin/mango/vo/report/ReportChartCreator.java index 742059e7c..025b8262a 100644 --- a/src/com/serotonin/mango/vo/report/ReportChartCreator.java +++ b/src/com/serotonin/mango/vo/report/ReportChartCreator.java @@ -124,7 +124,7 @@ public void createContent(ReportInstance reportInstance, ReportDao reportDao, St model.put("instance", reportInstance); model.put("points", pointStatistics); model.put("inline", inlinePrefix == null ? "" : "cid:"); - model.put("escapeHtml", new Security()); + model.put("security", new Security()); model.put("ALPHANUMERIC", DataTypes.ALPHANUMERIC); model.put("BINARY", DataTypes.BINARY); diff --git a/src/com/serotonin/mango/vo/report/SeriesIdentifier.java b/src/com/serotonin/mango/vo/report/SeriesIdentifier.java index 6a5dda966..ae28bf260 100644 --- a/src/com/serotonin/mango/vo/report/SeriesIdentifier.java +++ b/src/com/serotonin/mango/vo/report/SeriesIdentifier.java @@ -38,6 +38,6 @@ public int hashCode() { @Override public String toString() { - return XssProtectHtmlEscapeUtils.escape(name); + return name; } }
${point.name}
${security.escapeHtml(point.name)}
<@fmt key="reports.dataType"/> ${point.dataTypeDescription}