summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-14 14:48:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-14 14:48:56 +0300
commit65011fc458e284d88ddd7ecae05dded3e26025e0 (patch)
tree8429878edeb3a7f9e1707fd1751956b228ebc960 /plugins/Msg_Export/src
parent38179b8dac55e72e97d26aca620e51b57d5d25a1 (diff)
Msg_Export: file names shall not contain colons as well
Diffstat (limited to 'plugins/Msg_Export/src')
-rw-r--r--plugins/Msg_Export/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}