From: Rocco Rutte Date: Tue, 15 Jan 2008 16:46:46 +0000 (+0100) Subject: Fix logic error in b3cde588fe9a commit X-Git-Tag: mutt-1-5-18-rel~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ad89346dd86f32068df3e985521b22994220252;p=mutt Fix logic error in b3cde588fe9a commit --- diff --git a/ChangeLog b/ChangeLog index edfd6fc3..739cb191 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-01-15 17:34 +0100 Rocco Rutte (b3cde588fe9a) + + * recvattach.c: Prepend './' to (some) suggested filenames when saving + attachments. Attachment filenames may start with characters that are + special to mutt_expand_path() may cause undesired expansion. Closes + #1719. + +2008-01-15 15:07 +0100 Rocco Rutte (02fd1874a894) + + * ChangeLog, INSTALL, README: Update stale INSTALL+README files + 2008-01-15 12:34 +0100 Rocco Rutte (c06891454c6e) * mh.c: Make maildir_delayed_parsing() more readable diff --git a/recvattach.c b/recvattach.c index 611643ab..1a462881 100644 --- a/recvattach.c +++ b/recvattach.c @@ -505,8 +505,8 @@ void mutt_save_attachment_list (FILE *fp, int tag, BODY *top, HEADER *hdr, MUTTM { int append = 0; - prepend_curdir (buf, sizeof (buf)); strfcpy (buf, mutt_basename (NONULL (top->filename)), sizeof (buf)); + prepend_curdir (buf, sizeof (buf)); if (mutt_get_field (_("Save to file: "), buf, sizeof (buf), M_FILE | M_CLEAR) != 0 || !buf[0])