summaryrefslogtreecommitdiff
path: root/plugins/CurrencyRates/src/DBUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CurrencyRates/src/DBUtils.cpp')
-rw-r--r--plugins/CurrencyRates/src/DBUtils.cpp7
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 = '_';
+}