Home GnuPG
Diffusion GpgOL 81c048b716ec

Improve handling for disallowed filenames

Description

Improve handling for disallowed filenames

* src/common.cpp (get_tmp_outfile): Use a generic name after
50 tries.

If we could not create the file after 50 tries, maybe
the filename is invalid. In that case we now use a
generic "attachment" name. That name is visible in
the "Save As" dialog, but in the OOM the name
is set according to the original filename.

Details

Provenance
aheineckeAuthored on Jul 14 2020, 2:48 PM
Parents
rO4db95f1b3934: Put BodyFormat before setting the body
Branches
Unknown
Tags
Unknown
Tasks
T4835: attachement not displayed when pipe in filename of attachement