compare ssl_policy precisely in case somebody was bitten by template processor bug
This commit is contained in:
parent
e0e008fb8d
commit
26258bca77
2
boot.php
2
boot.php
|
@ -385,7 +385,7 @@ class App {
|
||||||
$scheme = $this->scheme;
|
$scheme = $this->scheme;
|
||||||
|
|
||||||
if((x($this->config,'system')) && (x($this->config['system'],'ssl_policy'))) {
|
if((x($this->config,'system')) && (x($this->config['system'],'ssl_policy'))) {
|
||||||
if($this->config['system']['ssl_policy'] == SSL_POLICY_FULL)
|
if(intval($this->config['system']['ssl_policy']) === intval(SSL_POLICY_FULL))
|
||||||
$scheme = 'https';
|
$scheme = 'https';
|
||||||
|
|
||||||
// We need to populate the $ssl flag across the entire program before turning this on.
|
// We need to populate the $ssl flag across the entire program before turning this on.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user