ad_page_contract_filter_proc_tmpfile (public)
ad_page_contract_filter_proc_tmpfile name value_varname
Defined in packages/acs-tcl/tcl/tcl-documentation-procs.tcl
Validate a tmpfile path. This must exist, be a direct child of the configured tmpfolder in the server-wide parameter and be readable and writable by the current user. Example usage: uploaded_file.tmpfile:tmpfile,optional
- Parameters:
- name
value_varname
- Author:
- Lars Pind <lars@pinds.com>
- Created:
- 25 July 2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_page_contract_filters
Source code: upvar $value_varname value set tmpfile_p [security::safe_tmpfile_p -must_exist $value] if {!$tmpfile_p} { ad_log warning "They tried to sneak in invalid tmpfile '$value'" ad_complain [_ acs-tcl.lt_You_specified_a_path_] } return $tmpfile_pXQL Not present: Generic, PostgreSQL, Oracle