Do not escaper single quote in minimal escaping mode.

This commit is contained in:
Toni Wilen 2024-01-07 11:45:13 +02:00
parent 94d8f5b1a1
commit 7726099e4b

View File

@ -577,7 +577,7 @@ static TCHAR *cfgfile_escape (const TCHAR *s, const TCHAR *escstr, bool quote, b
TCHAR c = s[i];
if (c == 0)
break;
if ((c == '\\' && !min) || c == '\"' || c == '\'') {
if ((c == '\\' && !min) || c == '\"' || (c == '\'' && !min)) {
*p++ = '\\';
*p++ = c;
} else if (c >= 32 && !quote) {