summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-30 23:38:53 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-01 02:08:06 +0100
commit2d3f8740e7f269f383f3469a424e00253ebbf83c (patch)
treeeeb2b9aa98f1253657ebad6f4aca6bab4f121988 /src/lib
parent03ba29cac931e5160e93ed0b7ed3c6bbd50335ea (diff)
Restrict name part of ISDCF name more (#2920).
This disallows + and . from the name part of an ISDCF name. I'm not 100% convinced about +, but . seems reasonable. This also fixes the case where you do "copy as name" with a name that should be transliterated, and the non-transliterated characters re-appear.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/film.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 1ac519011..ebbdfe013 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -920,7 +920,7 @@ Film::isdcf_name (bool if_created_now) const
fixed_name = fixed_name.substr(0, Config::instance()->isdcf_name_part_length());
- isdcf_name += fixed_name;
+ isdcf_name += careful_string_filter(fixed_name, L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-");
if (dcp_content_type()) {
isdcf_name += "_" + dcp_content_type()->isdcf_name();