Просмотр исходного кода

Bug 1745: Two consecutive different file mask delimiters are processed incorrectly

https://winscp.net/tracker/1745

Source commit: 6df19e62f6ad300a30b1d4470ac15a5bb143f82a
Martin Prikryl 6 лет назад
Родитель
Сommit
1beb65b228
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      source/core/Common.cpp

+ 2 - 1
source/core/Common.cpp

@@ -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++;