Skip to content
Snippets Groups Projects
Commit ec831222 authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #22780 Add slash chars to blacklist

parent b36c8792
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) { ...@@ -136,7 +136,7 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) {
std::string removeInvalidFilenameChars(std::string s) { std::string removeInvalidFilenameChars(std::string s) {
// NTFS is most restrictive, so blacklist on this // NTFS is most restrictive, so blacklist on this
std::string blacklistChars{ ":*\"?<>|" }; std::string blacklistChars{ ":*?<>|/\"\\" };
boost::remove_erase_if(s, boost::is_any_of(blacklistChars)); boost::remove_erase_if(s, boost::is_any_of(blacklistChars));
return s; return s;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment