Merge branch 'MDL-28484-master' of https://github.com/lucisgit/moodle
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user