N°4374 - Add sanitizer helper for front end (JS)

This commit is contained in:
acognet
2021-10-19 11:25:07 +02:00
parent 8a7f0d346d
commit 88fda1466e
2 changed files with 10 additions and 17 deletions

View File

@@ -114,8 +114,8 @@ $(function()
if (sTitle.length === 0) {
sTitle = sLabel;
}
sTitle = CombodoSanitizer.EscapeHtml(sTitle, false);
sLabel = CombodoSanitizer.EscapeHtml(sLabel, false);
sTitle = CombodoSanitizer.EscapeHtml(sTitle, true);
sLabel = CombodoSanitizer.EscapeHtml(sLabel, true);
if ((this.options.new_entry !== null) && (iEntry === aBreadCrumb.length-1)) {
// Last entry is the current page