summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-27 17:58:51 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-27 17:58:51 +0100
commitb81c95aca886372a8943c1fe8c6747d56e1c5d02 (patch)
tree1d6000984e6904c66cb212d54e67bf0576e7411c /desktop
parent862756a1a47553f317970f3a04fce3bd204792f6 (diff)
downloadnetsurf-b81c95aca886372a8943c1fe8c6747d56e1c5d02.tar.gz
netsurf-b81c95aca886372a8943c1fe8c6747d56e1c5d02.tar.bz2
s/http/https/ in user-facing URIs
Diffstat (limited to 'desktop')
-rw-r--r--desktop/hotlist.c10
-rw-r--r--desktop/searchweb.c6
-rw-r--r--desktop/searchweb.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index e9cbb5ffb..2e877b7c6 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -968,13 +968,13 @@ static nserror hotlist_generate(void)
const char *url;
const char *msg_key;
} default_entries[] = {
- { "http://www.netsurf-browser.org/",
+ { "https://www.netsurf-browser.org/",
"HotlistHomepage" },
- { "http://www.netsurf-browser.org/downloads/",
+ { "https://www.netsurf-browser.org/downloads/",
"HotlistDownloads" },
- { "http://www.netsurf-browser.org/documentation",
+ { "https://www.netsurf-browser.org/documentation",
"HotlistDocumentation" },
- { "http://www.netsurf-browser.org/contact",
+ { "https://www.netsurf-browser.org/contact",
"HotlistContact" }
};
const int n_entries = sizeof(default_entries) /
@@ -1626,7 +1626,7 @@ nserror hotlist_add_entry(nsurl *url, const char *title, bool at_y, int y)
enum treeview_relationship rel;
if (url == NULL) {
- err = nsurl_create("http://netsurf-browser.org/", &url);
+ err = nsurl_create("https://netsurf-browser.org/", &url);
if (err != NSERROR_OK) {
return err;
}
diff --git a/desktop/searchweb.c b/desktop/searchweb.c
index 597b8fffe..361860190 100644
--- a/desktop/searchweb.c
+++ b/desktop/searchweb.c
@@ -53,7 +53,7 @@ static struct search_web_ctx_s {
} search_web_ctx;
-static const char *default_providers = "Google|www.google.com|http://www.google.com/search?q=%s|http://www.google.com/favicon.ico|\n";
+static const char *default_providers = "Google|www.google.com|https://www.google.com/search?q=%s|https://www.google.com/favicon.ico|\n";
static const char *default_search_icon_url = "resource:icons/search.png";
@@ -333,11 +333,11 @@ search_web_omni(const char *term,
}
/* try with adding default scheme */
- eterm = malloc(strlen(term) + SLEN("http://") + 1);
+ eterm = malloc(strlen(term) + SLEN("https://") + 1);
if (eterm == NULL) {
return NSERROR_NOMEM;
}
- sprintf(eterm, "http://%s", term);
+ sprintf(eterm, "https://%s", term);
ret = nsurl_create(eterm, &url);
free(eterm);
if (ret == NSERROR_OK) {
diff --git a/desktop/searchweb.h b/desktop/searchweb.h
index 69748b6d6..0712de9fe 100644
--- a/desktop/searchweb.h
+++ b/desktop/searchweb.h
@@ -62,7 +62,7 @@ enum search_web_omni_flags {
* term. The flags allow control over the operation. By default the
* operations are:
* - interpret the \a term as a url
- * - if missing a scheme as a http: url
+ * - if missing a scheme as a https: url
* - combined with the search providers url into a url for that provider.
*
* \param term The search term.