]> granicus.if.org Git - mutt/commitdiff
Sanitize file name suggestions passed to mutt_adv_mktemp.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 16 May 2000 11:29:01 +0000 (11:29 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 16 May 2000 11:29:01 +0000 (11:29 +0000)
muttlib.c

index 2cfdc4d9dd8b45d75a8c1a67ccb3a218c75c729a..cbeddb05a710d540849b9a58c9a0a3d2f7d6cf26 100644 (file)
--- 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;