Fix empty dialog messages

Escape ampersands and angle brackets in some Gtk::MessageDialogs.
Closes #6306.
This commit is contained in:
Lawrence Lee
2021-08-15 12:23:29 -07:00
parent 22f89bc752
commit d3b67c1e22
7 changed files with 14 additions and 14 deletions

View File

@@ -281,9 +281,9 @@ void SaveAsDialog::okPressed ()
+ ": "
+ M("SAVEDLG_WARNFILENAME")
+ " \""
+ Glib::path_get_basename (fname)
+ escapeHtmlChars(Glib::path_get_basename (fname))
+ '.'
+ formatOpts->getFormat().format
+ escapeHtmlChars(formatOpts->getFormat().format)
+ "\"</b>",
true,
Gtk::MESSAGE_WARNING,