diff options
Diffstat (limited to 'plugins/CurrencyRates/src/DBUtils.cpp')
-rw-r--r-- | plugins/CurrencyRates/src/DBUtils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/CurrencyRates/src/DBUtils.cpp b/plugins/CurrencyRates/src/DBUtils.cpp index fa3df0c528..20189c0f3f 100644 --- a/plugins/CurrencyRates/src/DBUtils.cpp +++ b/plugins/CurrencyRates/src/DBUtils.cpp @@ -34,3 +34,10 @@ bool CurrencyRates_DBReadDouble(MCONTACT hContact, const char *szModule, const c db_free(&dbv); return bResult; } + +void FixInvalidChars(tstring &s) +{ + for (auto &c : s) + if (wcschr(L"\\/:*?\"<>|", c)) + c = '_'; +} |