Commit 66b4b4f7 authored by NTAuthority's avatar NTAuthority

only strip \ escape characters if they actually are escape sequences

parent aeb30782
......@@ -206,6 +206,11 @@ void SaveConfigurationIfNeeded(const std::string& path)
return GetDefaultContext()->SaveConfigurationIfNeeded(path);
}
static inline bool IsEscapeChar(char c)
{
return (c == '"');
}
ProgramArguments Tokenize(const std::string& line)
{
int i = 0;
......@@ -287,7 +292,7 @@ ProgramArguments Tokenize(const std::string& line)
break;
}
if (line[i] == '\\')
if (line[i] == '\\' && IsEscapeChar(line[i + 1]))
{
inEscape = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment