From f9d174af57a3166854490a2291b6f2715cd1b03d Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Wed, 10 Feb 2016 15:03:31 +0100 Subject: [PATCH] mu: escape the name of the part --- lib/mu-msg-sexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-msg-sexp.c b/lib/mu-msg-sexp.c index d84bf310..4d2f9a9b 100644 --- a/lib/mu-msg-sexp.c +++ b/lib/mu-msg-sexp.c @@ -366,7 +366,7 @@ each_part (MuMsg *msg, MuMsgPart *part, PartInfo *pinfo) ":attachment %s :size %i %s %s)", pinfo->parts ? pinfo->parts: "", part->index, - name ? name : "noname", + name ? mu_str_escape_c_literal(name, TRUE) : "noname", part->type ? part->type : "application", part->subtype ? part->subtype : "octet-stream", tmpfile ? " :temp" : "", tmpfile ? tmpfile : "",