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 --- embed/ephy-download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/ephy-download.c b/embed/ephy-download.c index 158702bc3..dc19b4589 100644 --- a/embed/ephy-download.c +++ b/embed/ephy-download.c @@ -305,7 +305,7 @@ define_destination_uri (EphyDownload *download, const char *suggested_filename) } if (suggested_filename != NULL) { - dest_name = g_strdup (suggested_filename); + dest_name = ephy_sanitize_filename (g_strdup (suggested_filename)); } else { dest_name = ephy_file_tmp_filename ("ephy-download-XXXXXX", NULL); } -- cgit v1.2.3