Skip to content
Snippets Groups Projects
Commit bbfb1818 authored by Andrey Kleshchev's avatar Andrey Kleshchev Committed by Rye Mutt
Browse files

jira-archive-internal#67837 Fix LLDir::getScrubbedFileName

parent 0828011e
No related branches found
No related tags found
No related merge requests found
......@@ -902,10 +902,10 @@ std::string LLDir::getScrubbedFileName(const std::string uncleanFileName)
std::string name(uncleanFileName);
const std::string illegalChars(getForbiddenFileChars());
// replace any illegal file chars with and underscore '_'
for( unsigned int i = 0; i < illegalChars.length(); i++ )
for( const char &ch : illegalChars)
{
int j = -1;
while((j = name.find(illegalChars[i])) > -1)
std::string::size_type j = -1;
while((j = name.find(ch)) != std::string::npos)
{
name[j] = '_';
}
......
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