diff options
author | dartraiden <wowemuh@gmail.com> | 2023-06-20 19:37:09 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2023-06-20 19:37:26 +0300 |
commit | 84f6f179f2970a36d2a9591d36eff418b7841bb8 (patch) | |
tree | 7e53f1b95e2f8127b79478e4c5e9e5037422fc52 | |
parent | 4b57a291f3d2ea2168666d3906a7c1780eef49e1 (diff) |
Let's use HTTPS in 2023
-rw-r--r-- | plugins/Scriver/src/utils.cpp | 16 | ||||
-rw-r--r-- | src/mir_app/src/srmm_log_rtf.cpp | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp index 47819260e7..874559fbf5 100644 --- a/plugins/Scriver/src/utils.cpp +++ b/plugins/Scriver/src/utils.cpp @@ -110,29 +110,29 @@ void SearchWord(wchar_t *word, int engine) CMStringA wordURL(mir_urlEncode(wordUTF));
switch (engine) {
case SEARCHENGINE_WIKIPEDIA:
- mir_snprintf(szURL, "http://en.wikipedia.org/wiki/%s", wordURL.c_str());
+ mir_snprintf(szURL, "https://en.wikipedia.org/wiki/%s", wordURL.c_str());
break;
case SEARCHENGINE_YAHOO:
- mir_snprintf(szURL, "http://search.yahoo.com/search?p=%s&ei=UTF-8", wordURL.c_str());
+ mir_snprintf(szURL, "https://search.yahoo.com/search?p=%s&ei=UTF-8", wordURL.c_str());
break;
case SEARCHENGINE_FOODNETWORK:
- mir_snprintf(szURL, "http://www.foodnetwork.com/search/%s-", wordURL.c_str());
+ mir_snprintf(szURL, "https://www.foodnetwork.com/search/%s-", wordURL.c_str());
break;
case SEARCHENGINE_BING:
- mir_snprintf(szURL, "http://www.bing.com/search?q=%s&form=OSDSRC", wordURL.c_str());
+ mir_snprintf(szURL, "https://www.bing.com/search?q=%s&form=OSDSRC", wordURL.c_str());
break;
case SEARCHENGINE_GOOGLE_MAPS:
- mir_snprintf(szURL, "http://maps.google.com/maps?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
+ mir_snprintf(szURL, "https://maps.google.com/maps?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
break;
case SEARCHENGINE_GOOGLE_TRANSLATE:
- mir_snprintf(szURL, "http://translate.google.com/?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
+ mir_snprintf(szURL, "https://translate.google.com/?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
break;
case SEARCHENGINE_YANDEX:
- mir_snprintf(szURL, "http://yandex.ru/yandsearch?text=%s", wordURL.c_str());
+ mir_snprintf(szURL, "https://yandex.ru/yandsearch?text=%s", wordURL.c_str());
break;
case SEARCHENGINE_GOOGLE:
default:
- mir_snprintf(szURL, "http://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
+ mir_snprintf(szURL, "https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", wordURL.c_str());
break;
}
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp index 18a4130482..6a879a535f 100644 --- a/src/mir_app/src/srmm_log_rtf.cpp +++ b/src/mir_app/src/srmm_log_rtf.cpp @@ -548,28 +548,28 @@ INT_PTR CRtfLogWindow::WndProc(UINT msg, WPARAM wParam, LPARAM lParam) CMStringW szURL;
switch (uID) {
case IDM_SEARCH_WIKIPEDIA:
- szURL.Format(L"http://en.wikipedia.org/wiki/%s", pszWord);
+ szURL.Format(L"https://en.wikipedia.org/wiki/%s", pszWord);
break;
case IDM_SEARCH_YAHOO:
- szURL.Format(L"http://search.yahoo.com/search?p=%s&ei=UTF-8", pszWord);
+ szURL.Format(L"https://search.yahoo.com/search?p=%s&ei=UTF-8", pszWord);
break;
case IDM_SEARCH_FOODNETWORK:
- szURL.Format(L"http://www.foodnetwork.com/search/%s-", pszWord);
+ szURL.Format(L"https://www.foodnetwork.com/search/%s-", pszWord);
break;
case IDM_SEARCH_BING:
- szURL.Format(L"http://www.bing.com/search?q=%s&form=OSDSRC", pszWord);
+ szURL.Format(L"https://www.bing.com/search?q=%s&form=OSDSRC", pszWord);
break;
case IDM_SEARCH_GOOGLE_MAPS:
- szURL.Format(L"http://maps.google.com/maps?q=%s&ie=utf-8&oe=utf-8", pszWord);
+ szURL.Format(L"https://maps.google.com/maps?q=%s&ie=utf-8&oe=utf-8", pszWord);
break;
case IDM_SEARCH_GOOGLE_TRANSLATE:
- szURL.Format(L"http://translate.google.com/?q=%s&ie=utf-8&oe=utf-8", pszWord);
+ szURL.Format(L"https://translate.google.com/?q=%s&ie=utf-8&oe=utf-8", pszWord);
break;
case IDM_SEARCH_YANDEX:
- szURL.Format(L"http://yandex.ru/yandsearch?text=%s", pszWord);
+ szURL.Format(L"https://yandex.ru/yandsearch?text=%s", pszWord);
break;
case IDM_SEARCH_GOOGLE:
- szURL.Format(L"http://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", pszWord);
+ szURL.Format(L"https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", pszWord);
break;
}
Utils_OpenUrlW(szURL);
|