diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-14 15:50:08 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-14 15:50:08 +0300 |
commit | 97c6db0e798e6ac5cfd0e95b3224b2fae6b026d2 (patch) | |
tree | 95b1b63b59e49d30ac9a2ef289d4ec8779ad5ebc | |
parent | 65011fc458e284d88ddd7ecae05dded3e26025e0 (diff) |
code cleaning
-rw-r--r-- | plugins/Msg_Export/src/utils.cpp | 5 |
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;
}
|