aboutsummaryrefslogtreecommitdiff
path: root/include/util/util.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-08 14:55:23 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-15 14:19:55 +0100
commitab4aea7b40f8977fe3d67875d0acb4032cf9d0c5 (patch)
treebd262fe139e6d515322acbd24832eb860de995f3 /include/util/util.h
parent723a9e93adb9ba0501f2db449a56c7e0eace5c23 (diff)
Extend is_filename_sane reserved character/name check
- Instead of an open coded version, check against a list of bad names. On windows, the comparison needs to be done case insensitive. - If compiling for Windows, include the magic DOS device names in that list. - Also classify filenames as 'insane' if they contain back slashes, on all platforms. - If compiling for Windows, check for reserved characters. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/util/util.h')
0 files changed, 0 insertions, 0 deletions