aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-09-10 19:17:02 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-09-10 23:05:11 +0800
commit528eff9588298315490d173a40ad865f461d4e29 (patch)
treed1e44df9f5584f5bb3d4c52fac230dac9df75546 /src
parent6e6df39c03355307484b81c73a6812eb1ba28bc7 (diff)
downloadgsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar.gz
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar.bz2
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar.lz
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar.xz
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.tar.zst
gsoc2013-epiphany-528eff9588298315490d173a40ad865f461d4e29.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c2
1 files changed, 1 insertions, 1 deletions
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);