From: Alan Knowles Date: Fri, 29 Jun 2018 08:28:01 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=608433efe5657aa8969a0a5b833f154ac255f0dd src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index bcc2fca..5424e96 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -580,7 +580,7 @@ public class Strip : GLib.Object { """.printf( this.mysql_escape(this.active_message_exim_id), chksum, - this.mysql_escape( attachment.get_filename() ), // what is thsi is invalid? + this.mysql_escape( GLib.Uri.escape_string(attachment.get_filename(),"", false) ), // what is thsi is invalid? file_size) ); @@ -624,7 +624,7 @@ public class Strip : GLib.Object { var target_fn = ""; if (StripApplication.opt_is_extracting) { - target_fn = StripApplication.opt_target_path + "/" + this.created_dir +"/"+ file_id + "-" + filename; + target_fn = StripApplication.opt_target_path + "/" + this.created_dir +"/"+ file_id + "-" + GLib.Uri.escape_string(filename,"", false); } var stored = "/" + this.created_dir +"/"+ file_id + "-" + filename;