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):
%3 packages/acs-api-browser/www/content-page-view.tcl packages/acs-api-browser/ www/content-page-view.tcl apidoc::sanitize_path apidoc::sanitize_path packages/acs-api-browser/www/content-page-view.tcl->apidoc::sanitize_path packages/acs-api-browser/www/procs-file-view.tcl packages/acs-api-browser/ www/procs-file-view.tcl packages/acs-api-browser/www/procs-file-view.tcl->apidoc::sanitize_path ad_conn ad_conn (public) apidoc::sanitize_path->ad_conn

Testcases:
No testcase defined.
[ show source ]
Show another procedure: