Home GnuPG
Diffusion GpgOL dbcfa2b2f8bd

Add filename sanitizers for windows filenames

Description

Add filename sanitizers for windows filenames

* src/common.cpp (sanitizeFileName, validateWindowsFileName)
(windowsDeviceSubDirPattern, windowsDeviceNoSubDirPattern): New.
* src/common.h: Update accordingly.

This fixes working with attachments which contain invalid
characters in their name. Previously getTmpOutfile would have
ended up with just the completely generic name attachment. Now
we remove the invalid characters from the filename with
sanitizeFileName.

Details

Provenance
aheineckeAuthored on Fri, Aug 23, 12:20 PM
Parents
rO3800e96e3292: Fix minor memory tracking issue
Branches
Unknown
Tags
Unknown
Tasks
T6864: GpgOL: Invalid filenames are not checked for temporary files