[Commits] [SCM] claws branch, master, updated. 4.1.0-66-g3a31cf2d6

paul at claws-mail.org paul at claws-mail.org
Tue Sep 20 09:52:37 UTC 2022


The branch, master has been updated
       via  3a31cf2d6a2483ee389a575def601c94366271c5 (commit)
      from  7f708453601816040b91ac0df418985fd29e9311 (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 3a31cf2d6a2483ee389a575def601c94366271c5
Author: Paul <paul at claws-mail.org>
Date:   Tue Sep 20 10:52:30 2022 +0100

    disable the cache
    
    fixes bug where the wrong mid/cid images would be shown when named identically to previously viewed images

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 6701e8bd9..2048c8351 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -110,6 +110,7 @@ static void fancy_apply_prefs(FancyViewer *viewer)
 		g_strfreev(msg_font_params);
 	}
 	webkit_web_view_set_settings(viewer->view, viewer->settings);
+	webkit_web_context_set_cache_model(webkit_web_context_get_default(), WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
 	if (viewer->override_prefs_remote_content)
 		webkit_web_context_set_network_proxy_settings(webkit_web_context_get_default(), WEBKIT_NETWORK_PROXY_MODE_DEFAULT, NULL);
 	else
@@ -523,7 +524,7 @@ static void resource_request_starting_cb(WebKitWebView		*view,
 	gchar *image;
 	gint err;
 	MimeInfo *partinfo = viewer->to_load;
-	
+
 	filename = viewer->filename;
 	if ((!g_ascii_strncasecmp(uri, "cid:", 4)) || (!g_ascii_strncasecmp(uri, "mid:", 4))) {
 		image = g_strconcat("<", uri + 4, ">", NULL);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list