From 7726099e4ba6817e38b66c1988203c23d1ad61bf Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 7 Jan 2024 11:45:13 +0200 Subject: [PATCH] Do not escaper single quote in minimal escaping mode. --- cfgfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 49eaff2e..a5e69af2 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -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) { -- 2.47.3