Skip to content

Commit

Permalink
Bug 1745: Two consecutive different file mask delimiters are processe…
Browse files Browse the repository at this point in the history
…d incorrectly

https://winscp.net/tracker/1745
(cherry picked from commit 1beb65b)

Source commit: 751598f8db2bcad15feca46de6db04c7c6ddd263
  • Loading branch information
martinprikryl committed May 23, 2019
1 parent 4f014d8 commit fc63bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/core/Common.cpp
Expand Up @@ -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++;
Expand Down

0 comments on commit fc63bd6

Please sign in to comment.