ad_sanitize_filename (public)
ad_sanitize_filename [ -no_resolve ] \ [ -existing_names existing_names ] [ -collapse_spaces ] \ [ -replace_with replace_with ] [ -tolower ] str
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Sanitize the provided filename for modern Windows, OS X, and Unix filesystems (NTFS, ext, etc.). FAT 8.3 filenames are not supported. The generated strings should be safe against https://github.com/minimaxir/big-list-of-naughty-strings
- Switches:
- -no_resolve (optional, boolean)
- -existing_names (optional)
- -collapse_spaces (optional, boolean)
- -replace_with (optional, defaults to
"-"
)- -tolower (optional, boolean)
- Parameters:
- str (required)
- Author:
- Gustaf Neumann
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad__sanitize_filename, fs_add_file_to_folder