projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
249ea67
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:29:03 +0000
(16:29 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:29:03 +0000
(16:29 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
306b747
..
0c7f52a
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-647,14
+647,14
@@
public class Strip : GLib.Object {
string txt = "<html><body>"+
"<a href=\"" + StripApplication.opt_replace_link + "/" +
file_id + "/" + this.created_dir + "/"+chksum+"/"+ GLib.Uri.escape_string( filename, "", false) +"\">" +
string txt = "<html><body>"+
"<a href=\"" + StripApplication.opt_replace_link + "/" +
file_id + "/" + this.created_dir + "/"+chksum+"/"+ GLib.Uri.escape_string( filename, "", false) +"\">" +
- GLib.Uri.escape_string( filename) + // fixme needs html escaping...
+ GLib.Uri.escape_string( filename
, "", false
) + // fixme needs html escaping...
"</a>" +
"</body></html>";
rep.get_content_type().set_parameter("charset", "utf-8");
rep.set_header("X-strip-id", file_id);
rep.set_header("X-strip-content-name", filename);
"</a>" +
"</body></html>";
rep.get_content_type().set_parameter("charset", "utf-8");
rep.set_header("X-strip-id", file_id);
rep.set_header("X-strip-content-name", filename);
- rep.set_header("X-strip-path", this.created_dir + "/" + file_id + "-" +
filename);
+ rep.set_header("X-strip-path", this.created_dir + "/" + file_id + "-" +
GLib.Uri.escape_string(filename,"", false));
rep.set_header("X-strip-content-type", mime_type);
var stream = new GMime.StreamMem.with_buffer(txt.data);
var con = new GMime.DataWrapper.with_stream(stream,GMime.ContentEncoding.DEFAULT);
rep.set_header("X-strip-content-type", mime_type);
var stream = new GMime.StreamMem.with_buffer(txt.data);
var con = new GMime.DataWrapper.with_stream(stream,GMime.ContentEncoding.DEFAULT);