From 528eff9588298315490d173a40ad865f461d4e29 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 10 Sep 2012 13:17:02 +0200 Subject: Use ephy_sanitize_filename() for filenames suggested by the server Because the suggested filename returned by the server might contain directory separators. https://bugzilla.gnome.org/show_bug.cgi?id=683711 --- src/window-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index 44e880ca3..4b4fcb23a 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -351,7 +351,7 @@ window_cmd_file_save_as (GtkAction *action, gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); view = ephy_embed_get_web_view (embed); - suggested_filename = get_suggested_filename (view); + suggested_filename = ephy_sanitize_filename (get_suggested_filename (view)); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), suggested_filename); g_free (suggested_filename); -- cgit v1.2.3