Explorar el Código

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

https://winscp.net/tracker/1745

Source commit: 6df19e62f6ad300a30b1d4470ac15a5bb143f82a
Martin Prikryl hace 6 años
padre
commit
1beb65b228
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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++;