[Commits] [SCM] claws branch, master, updated. 4.1.1-1-g1e3b95e1d
miras at claws-mail.org
miras at claws-mail.org
Sat Oct 22 10:56:31 UTC 2022
The branch, master has been updated
via 1e3b95e1d341111c0b3aeaac03aa059d7fc0d840 (commit)
from c8ddd32fa2c9bb9e61a34a3550d72cd67b36da21 (commit)
Summary of changes:
src/plugins/fancy/fancy_web_extension.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 1e3b95e1d341111c0b3aeaac03aa059d7fc0d840
Author: Michael Rasmussen <mir at datanom.net>
Date: Sat Oct 22 12:56:21 2022 +0200
Since g_uri_peek_scheme requires GLib 2.66 replace it with g_uri_parse_scheme
Signed-off-by: Michael Rasmussen <mir at datanom.net>
diff --git a/src/plugins/fancy/fancy_web_extension.c b/src/plugins/fancy/fancy_web_extension.c
index 586d95daf..3a61cafc4 100644
--- a/src/plugins/fancy/fancy_web_extension.c
+++ b/src/plugins/fancy/fancy_web_extension.c
@@ -31,15 +31,16 @@ static gboolean web_page_send_request_cb(WebKitWebPage *web_page,
gboolean is_remote = TRUE;
gboolean should_block;
const char *request_uri = webkit_uri_request_get_uri(request);
- const char *scheme = g_uri_peek_scheme(request_uri);
+ gchar *scheme = g_uri_parse_scheme(request_uri);
if (scheme == NULL)
return TRUE;
- if (strcmp(scheme, "cid") == 0 ||
- strcmp(scheme, "file") == 0 ||
- strcmp(scheme, "about") == 0)
+ if (g_ascii_strcasecmp(scheme, "cid") == 0 ||
+ g_ascii_strcasecmp(scheme, "file") == 0 ||
+ g_ascii_strcasecmp(scheme, "about") == 0)
is_remote = FALSE;
+ g_free(scheme);
if (is_remote)
should_block = !load_remote_content;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list