apidoc::sanitize_path (private)
apidoc::sanitize_path [ -prefix prefix ] path
Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl
Return a sanitized path. Cleans path from directory traversal attacks and checks, if someone tries to access content outside of the specified prefix.
- Switches:
- -prefix (optional, defaults to
"packages"
)- Parameters:
- path (required)
- Returns:
- sanitized path
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.