security::get_secure_location (public)
security::get_secure_location
Defined in packages/acs-tcl/tcl/security-procs.tcl
Return the current location in secure (https) mode.
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- get_insecure_location
Source code: set current_location [util_current_location] if { [regexp {^https://} $current_location] } { # # Current location is already secure - do nothing # set secure_location $current_location } elseif {[util::split_location $current_location proto hostname port]} { # # Do not return a location with a port number, when # SuppressHttpPort is set. # set suppress_http_port [parameter::get -parameter SuppressHttpPort -boolean -package_id [apm_package_id_from_key acs-tcl] -default 0] set secure_location [util::join_location -proto https -hostname $hostname -port [expr {$suppress_http_port ? "" : [security::get_https_port]}]] } else { error "invalid location $current_location" } return $secure_locationGeneric 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