aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-12-20 06:44:51 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2009-12-29 12:41:46 +0800
commit8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3 (patch)
tree09c333a3293a56352d23e3e8282fbddee86556d7 /embed
parentb5e9878479d8823bf9a0a8059975746f95d6afc2 (diff)
downloadgsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar.gz
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar.bz2
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar.lz
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar.xz
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.tar.zst
gsoc2013-epiphany-8d4a7f14d9c4cd6646ef0e96b0f8bcaf3d85b7b3.zip
Enable mime type safety check in downloads
Honour our database of safe and unsafe mime types. Bug #605026
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c1
1 files changed, 1 insertions, 0 deletions
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;