This commit is contained in:
2020-09-15 14:04:00 +00:00
parent 334d3b725b
commit 3b4593d249

View File

@@ -401,7 +401,6 @@ namespace AyaNova.Biz
log.LogDebug($"Preparing page: adding this report's scripts, style and templates to page"); log.LogDebug($"Preparing page: adding this report's scripts, style and templates to page");
//add report pre-render, helpers and style //add report pre-render, helpers and style
//TODO: Add code to vet / evaluate these scripts and see if they are safe and contain valid methods expected
if (string.IsNullOrWhiteSpace(report.JsPrerender)) if (string.IsNullOrWhiteSpace(report.JsPrerender))
{ {
report.JsPrerender = "async function ayPrepareData(reportData){return reportData;}"; report.JsPrerender = "async function ayPrepareData(reportData){return reportData;}";