guard against bad filenames in slide options

pull/1/head
ansuz 3 years ago
parent e65d93efdf
commit 28ce7f828d

@ -229,7 +229,7 @@ define([
var refreshValue = function () { var refreshValue = function () {
$bgValue.html(''); $bgValue.html('');
if (slideOptionsTmp.background && slideOptionsTmp.background.name) { 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>', { $('<span>', {
'class': 'fa fa-times', 'class': 'fa fa-times',
title: Messages.printBackgroundRemove, title: Messages.printBackgroundRemove,

Loading…
Cancel
Save