projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03a7c7e
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:28:01 +0000
(16:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:28:01 +0000
(16:28 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
bcc2fca
..
5424e96
100644
(file)
--- 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,
""".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)
);
file_size)
);
@@
-624,7
+624,7
@@
public class Strip : GLib.Object {
var target_fn = "";
if (StripApplication.opt_is_extracting) {
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;
}
var stored = "/" + this.created_dir +"/"+ file_id + "-" + filename;