Remove invalid characters from filename before writing a file
This commit is contained in:
parent
1f6e0ecdc8
commit
dd6001805f
|
@ -105,6 +105,11 @@ public:
|
||||||
filename = item->getMetadata("title");
|
filename = item->getMetadata("title");
|
||||||
if (filename == "")
|
if (filename == "")
|
||||||
filename = "output";
|
filename = "output";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Remove invalid characters
|
||||||
|
std::replace(filename.begin(), filename.end(), '/', '_');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
filename = outputFile;
|
filename = outputFile;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user