[HttpFoundation] Fixed isSecure() check to be compliant with the docs
This commit is contained in:
parent
eca7915a1e
commit
7bc37bd899
@ -1100,7 +1100,9 @@ class Request
|
|||||||
return in_array(strtolower(current(explode(',', $proto))), array('https', 'on', 'ssl', '1'));
|
return in_array(strtolower(current(explode(',', $proto))), array('https', 'on', 'ssl', '1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'on' == strtolower($this->server->get('HTTPS')) || 1 == $this->server->get('HTTPS');
|
$https = $this->server->get('HTTPS');
|
||||||
|
|
||||||
|
return !empty($https) && 'off' !== strtolower($https);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user