security::redirect_to_secure (public)
security::redirect_to_secure [ -script_abort ] url
Defined in packages/acs-tcl/tcl/security-procs.tcl
Redirect to the given URL and enter secure (HTTPS) mode. Does nothing if the server is not configured for HTTPS support.
- Switches:
- -script_abort (optional, boolean, defaults to
"true"
)- Parameters:
- url (required)
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if { [https_available_p] } { set secure_url [get_secure_qualified_url $url] ns_set put [ad_conn outputheaders] Vary "Upgrade-Insecure-Requests" #ns_log notice "redirect $url to secure url $secure_url" ad_returnredirect $secure_url if {$script_abort_p} {ad_script_abort} }Generic XQL file: packages/acs-tcl/tcl/security-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/security-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/security-procs-oracle.xql