diff options
author | dartraiden <wowemuh@gmail.com> | 2024-05-17 21:36:11 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2024-05-17 21:46:59 +0300 |
commit | 889131fb1960d423fb39fbf84d0e89c7ca9f82ef (patch) | |
tree | af5412dc730d769b7adf8c415d1c7a41fa01df64 /protocols | |
parent | 7e6687edc73d4b4091e477049133bcac3a4f3527 (diff) |
CurrencyRates: fix sending the API key to the server (fixes #4425)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp | 2 | ||||
-rw-r--r-- | protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp b/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp index 46924e4e6d..ca4f41de09 100644 --- a/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp +++ b/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp @@ -4,7 +4,7 @@ static CMStringW build_url(const CMStringW &rsURL, const CMStringW &from, const { CMStringW res = rsURL + L"?q=" + from + L"_" + to + L"&compact=ultra"; if (mir_wstrlen(g_plugin.wszApiKey)) - res.AppendFormat(L"&apiKey=%S", (wchar_t*)g_plugin.wszApiKey); + res.AppendFormat(L"&apiKey=%s", (wchar_t*)g_plugin.wszApiKey); return res; } diff --git a/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp b/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp index d2707c35ce..75dbf4244d 100644 --- a/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp +++ b/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp @@ -4,7 +4,7 @@ static CMStringW build_url(const CMStringW &rsURL) { CMStringW res = rsURL + L"?"; if (mir_wstrlen(g_plugin.wszApiKey)) - res.AppendFormat(L"&apiKey=%S", (wchar_t *)g_plugin.wszApiKey); + res.AppendFormat(L"&apiKey=%s", (wchar_t *)g_plugin.wszApiKey); return res; } |