X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2Fstrip.vala;h=bcc2fca9edfc17363361ba6e7dc6272dd4b394e4;hb=03a7c7e537c0328ea163670b75712666d03b53a0;hp=50f23b19a2215a36d649a0398b91937d18870cb0;hpb=29a2b1326352b01fe7560ef37e3ea9d73f672c00;p=app.mailtrimmer diff --git a/src/strip.vala b/src/strip.vala index 50f23b1..bcc2fca 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -544,7 +544,7 @@ public class Strip : GLib.Object { var filename = attachment.get_filename().replace("/", "-").replace("\n", "").replace("\t", " "); var fn = GLib.Environment.get_tmp_dir() + - "/"+ this.active_name + "."+ filename; + "/"+ this.active_name + "."+ GLib.Uri.escape_string(filename,"", false); var outfile = new GMime.StreamFile.for_path(fn, "w"); outfile.set_owner(true);