forked from soutade/libgourou
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");
|
||||
if (filename == "")
|
||||
filename = "output";
|
||||
else
|
||||
{
|
||||
// Remove invalid characters
|
||||
std::replace(filename.begin(), filename.end(), '/', '_');
|
||||
}
|
||||
}
|
||||
else
|
||||
filename = outputFile;
|
||||
|
|
Loading…
Reference in New Issue
Block a user