xowiki::Package instproc normalize_path (public)
<instance of xowiki::Package> normalize_path name
Defined in /var/www/openacs/packages/xowiki/tcl/package-procs.tcl
Normalize a path and remove the leading slash.
- Parameters:
- name (required)
- Path to normalize.
- Returns:
- Normalized relative path.
- Testcases:
- package_normalize_path
Source code: # # Don't allow any addressing outside of the jail. # # ns_normalizepath always adds a leading "/", so remove this. # set nn [ns_normalizepath $name] return [string range $nn 1 end]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)