From 65011fc458e284d88ddd7ecae05dded3e26025e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Mar 2024 14:48:56 +0300 Subject: Msg_Export: file names shall not contain colons as well --- plugins/Msg_Export/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Msg_Export/src') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 7fb311957f..6d6f1a5172 100644 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -477,7 +477,7 @@ void ReplaceDefines(MCONTACT hContact, wstring &sTarget) // We can't replace the : here because if the user uses C:\... in the file path // this will also be replaced string::size_type nCur = 0; - while ((nCur = sTarget.find_first_of(L"/*?<>|\"", nCur)) != sTarget.npos) + while ((nCur = sTarget.find_first_of(L"/*?:<>|\"", nCur)) != sTarget.npos) sTarget[nCur] = cBadCharReplace; } -- cgit v1.2.3