MDL-28484 core_lib: Add function for https detection

Signed-off-by: Tony Butler <[email protected]>
This commit is contained in:
Tony Butler
2014-10-03 13:02:29 +01:00
parent 6597413d41
commit 1e31f11852
19 changed files with 35 additions and 21 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ class manager {
protected static function prepare_cookies() {
global $CFG;
if (!isset($CFG->cookiesecure) or (strpos($CFG->wwwroot, 'https://') !== 0 and empty($CFG->sslproxy))) {
if (!isset($CFG->cookiesecure) or (!is_https() and empty($CFG->sslproxy))) {
$CFG->cookiesecure = 0;
}