From 8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sat, 19 Dec 2009 17:44:51 -0500 Subject: Enable mime type safety check in downloads Honour our database of safe and unsafe mime types. Bug #605026 --- embed/ephy-embed.c | 1 + 1 file changed, 1 insertion(+) (limited to 'embed/ephy-embed.c') diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 3b1e7c03a..038164ca2 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -673,6 +673,7 @@ confirm_action_from_mime (WebKitWebView *web_view, if (content_type) { mime_description = g_content_type_get_description (content_type); helper_app = g_app_info_get_default_for_type (content_type, FALSE); + mime_permission = ephy_file_check_mime (content_type); if (helper_app) { action = DOWNLOAD_ACTION_OPEN; -- cgit v1.2.3