diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-04-27 13:37:21 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-05-01 14:16:17 -0700 |
commit | 98f0ca6bb80270f954e72fe20144a6cb41ef4593 (patch) | |
tree | f1b99082982050b9e26b855146fb186c8f830eed /handler.c | |
parent | fdee288a986d37a69e7ecaef2ae28997e4b1d731 (diff) |
Add allow_8bit flag to sanitize_filename functions.
This will allow "view" mailcap invocations and autoview invocations to
display something reasonable for international file names. Also add
the flag to mutt_adv_mktemp(), which the mailcap viewer calls.
Convert the 'slash parameter' to an ALLOW_SLASH flag. This makes the
flags consistent (both "allow" something not permitted by default),
and invocations more readable.
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1325,7 +1325,7 @@ static int autoview_handler (BODY *a, STATE *s) rfc1524_mailcap_lookup (a, type, sizeof(type), entry, MUTT_AUTOVIEW); fname = safe_strdup (a->filename); - mutt_sanitize_filename (fname, 1); + mutt_sanitize_filename (fname, MUTT_SANITIZE_ALLOW_8BIT); mutt_rfc1524_expand_filename (entry->nametemplate, fname, tempfile); FREE (&fname); |