From: Toni Wilen Date: Sun, 7 Jan 2024 09:45:13 +0000 (+0200) Subject: Do not escaper single quote in minimal escaping mode. X-Git-Tag: 5200~82 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7726099e4ba6817e38b66c1988203c23d1ad61bf;p=francis%2Fwinuae.git Do not escaper single quote in minimal escaping mode. --- 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) {