From: Thomas Roessler Date: Tue, 16 May 2000 11:29:01 +0000 (+0000) Subject: Sanitize file name suggestions passed to mutt_adv_mktemp. X-Git-Tag: mutt-1-3-1-rel~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96d10b9a31b3de49fa5237975050470e1ee75a24;p=mutt Sanitize file name suggestions passed to mutt_adv_mktemp. --- diff --git a/muttlib.c b/muttlib.c index 2cfdc4d9..cbeddb05 100644 --- a/muttlib.c +++ b/muttlib.c @@ -79,6 +79,7 @@ void mutt_adv_mktemp (char *s, size_t l) else { strfcpy (tmp, s, sizeof (tmp)); + mutt_sanitize_filename (tmp, 1); snprintf (s, l, "%s/%s", buf, tmp); if (lstat (s, &sb) == -1 && errno == ENOENT) return;