Validate EXIF UTF-8 strings (fixes #5923)

This commit is contained in:
Flössie
2020-10-03 10:18:23 +02:00
parent 0e1f623713
commit b311b5b6d2
2 changed files with 33 additions and 21 deletions

View File

@@ -209,6 +209,9 @@ void ExifPanel::setImageData (const FramesMetaData* id)
Gtk::TreeModel::Children ExifPanel::addTag (const Gtk::TreeModel::Children& root, Glib::ustring field, Glib::ustring value, rtexif::ActionCode action, bool editable)
{
if (!value.validate()) {
value = "???";
}
Gtk::TreeModel::Row row = * (exifTreeModel->append (root));
row[exifColumns.action] = action;