From 137b2b1b440b5594b4d371c10884acd0a90df6bf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 22 Mar 2019 00:09:07 +0000 Subject: Make careful_string_filter a little better and use it for KDM filenames. --- src/lib/cinema_kdms.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/cinema_kdms.cc') diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index 2e1d03b40..558aee504 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -67,7 +67,7 @@ CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, dcp::NameFormat nam name_values['s'] = i.screen->name; name_values['i'] = i.kdm.id (); - string const name = name_format.get(name_values, ".xml"); + string const name = careful_string_filter(name_format.get(name_values, ".xml")); if (zip_add (zip, name.c_str(), source) == -1) { throw runtime_error ("failed to add KDM to ZIP archive"); } -- cgit v1.2.3