https://winscp.net/tracker/1745 Source commit: 6df19e62f6ad300a30b1d4470ac15a5bb143f82a
@@ -216,7 +216,8 @@ UnicodeString CopyToChars(const UnicodeString & Str, int & From, UnicodeString C
{
if (DoubleDelimiterEscapes &&
(P < Str.Length()) &&
- IsDelimiter(Chs, Str, P + 1))
+ IsDelimiter(Chs, Str, P + 1) &&
+ (Str[P + 1] == Str[P]))
Result += Str[P];
P++;