src/strip.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 Jun 2018 08:28:01 +0000 (16:28 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 Jun 2018 08:28:01 +0000 (16:28 +0800)
src/strip.vala

index bcc2fca..5424e96 100644 (file)
@@ -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;