util::archive_check_paths (private)
util::archive_check_paths -archive archive
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Validate entry names of an archive: reject path traversal and absolute paths. Rejects: - Unix absolute paths: names starting with '/' - Windows UNC paths: '\\server\share\...' - Windows drive-letter paths: 'C:\foo', 'D:/bar' - Any path with '..' as a path component (both '/' and '\' separators)
- Switches:
- -archive (required)
- Testcases:
- No testcase defined.