guard against bad filenames in slide options

This commit is contained in:
ansuz 2022-02-10 12:03:48 +05:30
parent e65d93efdf
commit 28ce7f828d
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ define([
var refreshValue = function () {
$bgValue.html('');
if (slideOptionsTmp.background && slideOptionsTmp.background.name) {
$bgValue.append(Messages._getKey("printBackgroundValue", [slideOptionsTmp.background.name]));
$bgValue.append(Messages._getKey("printBackgroundValue", [Util.fixHTML(slideOptionsTmp.background.name)]));
$('<span>', {
'class': 'fa fa-times',
title: Messages.printBackgroundRemove,