Remove invalid characters from filename before writing a file

This commit is contained in:
Grégory Soutadé 2021-11-26 20:00:36 +01:00
parent 1f6e0ecdc8
commit dd6001805f

View File

@ -105,6 +105,11 @@ public:
filename = item->getMetadata("title");
if (filename == "")
filename = "output";
else
{
// Remove invalid characters
std::replace(filename.begin(), filename.end(), '/', '_');
}
}
else
filename = outputFile;