summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-14 15:50:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-14 15:50:08 +0300
commit97c6db0e798e6ac5cfd0e95b3224b2fae6b026d2 (patch)
tree95b1b63b59e49d30ac9a2ef289d4ec8779ad5ebc /plugins/Msg_Export/src
parent65011fc458e284d88ddd7ecae05dded3e26025e0 (diff)
code cleaning
Diffstat (limited to 'plugins/Msg_Export/src')
-rw-r--r--plugins/Msg_Export/src/utils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 6d6f1a5172..071d2ae43f 100644
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -474,9 +474,8 @@ void ReplaceDefines(MCONTACT hContact, wstring &sTarget)
ReplaceAllNoColon(sTarget, L"%group%", sGroup);
}
- // 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;
+ // we don't touch the leading colon and \\ either
+ string::size_type nCur = 2;
while ((nCur = sTarget.find_first_of(L"/*?:<>|\"", nCur)) != sTarget.npos)
sTarget[nCur] = cBadCharReplace;
}