diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-09-10 19:17:02 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-09-10 23:05:11 +0800 |
commit | 528eff9588298315490d173a40ad865f461d4e29 (patch) | |
tree | d1e44df9f5584f5bb3d4c52fac230dac9df75546 /embed/ephy-download.c | |
parent | 6e6df39c03355307484b81c73a6812eb1ba28bc7 (diff) | |
download | gsoc2013-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 'embed/ephy-download.c')
-rw-r--r-- | embed/ephy-download.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |