From 608433efe5657aa8969a0a5b833f154ac255f0dd Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 29 Jun 2018 16:28:01 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2