mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Merge pull request #366 from tomaz82/fix_escapedpath
Fix Utils::FileSystem::getEscapedPath
This commit is contained in:
commit
a0b624075b
|
@ -206,11 +206,12 @@ namespace Utils
|
||||||
// insert a backslash before most characters that would mess up a bash path
|
// insert a backslash before most characters that would mess up a bash path
|
||||||
const char* invalidChars = "\\ '\"!$^&*(){}[]?;<>";
|
const char* invalidChars = "\\ '\"!$^&*(){}[]?;<>";
|
||||||
const char* invalidChar = invalidChars;
|
const char* invalidChar = invalidChars;
|
||||||
size_t start = 0;
|
|
||||||
size_t offset = 0;
|
|
||||||
|
|
||||||
while(*invalidChar)
|
while(*invalidChar)
|
||||||
{
|
{
|
||||||
|
size_t start = 0;
|
||||||
|
size_t offset = 0;
|
||||||
|
|
||||||
while((offset = path.find(*invalidChar, start)) != std::string::npos)
|
while((offset = path.find(*invalidChar, start)) != std::string::npos)
|
||||||
{
|
{
|
||||||
start = offset + 1;
|
start = offset + 1;
|
||||||
|
|
Loading…
Reference in a new issue