rp_file_can_be_public_p (private)
rp_file_can_be_public_p path
Defined in packages/acs-tcl/tcl/request-processor-procs.tcl
Determines if -- absent application restrictions -- a file can be served to a client without violating simple security checks. The checks and response do not require the initialization of ad_conn or expensive permission:: calls. The proc will return page-not-found messages to the client in the case where the file must not be served, log a warning, and close the connection to the client.
- Parameters:
- path (required)
- The file to perform the simple security checks on.
- Returns:
- 0 (and close the connection!) if the file must not be served. 1 if the application should perform its own checks, if any.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.