From 889131fb1960d423fb39fbf84d0e89c7ca9f82ef Mon Sep 17 00:00:00 2001 From: dartraiden Date: Fri, 17 May 2024 21:36:11 +0300 Subject: CurrencyRates: fix sending the API key to the server (fixes #4425) --- protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp | 2 +- protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/CurrencyRates/src') 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; } -- cgit v1.2.3