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 - 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):
%3 rp_serve_concrete_file rp_serve_concrete_file (public) rp_file_can_be_public_p rp_file_can_be_public_p rp_serve_concrete_file->rp_file_can_be_public_p rp_serve_resource_file rp_serve_resource_file (private) rp_serve_resource_file->rp_file_can_be_public_p ad_file ad_file (public) rp_file_can_be_public_p->ad_file parameter::get parameter::get (public) rp_file_can_be_public_p->parameter::get

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