GNOME Bugzilla – Bug 683711
Epiphany should sanitize suggested filenames returned by the server
Last modified: 2012-09-10 15:23:44 UTC
Ephy uses the filename suggested by the server for downloads and saving. The server might return a filename that contains directory separators. The download will fail because the filename is considered a full path.
Created attachment 223896 [details] [review] ephy-file-helpers: Add ephy_sanitize_filename()
Created attachment 223897 [details] [review] Patch
Review of attachment 223896 [details] [review]: A simple test for this would be awesome, fwiw. ::: lib/ephy-file-helpers.c @@ +1061,3 @@ + * filesystem. + * + * Note that it todifies string in place, and returns string itself, s/todifies/modifies/, you can get rid of the "and returns string itself" bit, it is redundant.
Review of attachment 223897 [details] [review]: OK.