Merge branch 'MDL-28484-master' of https://github.com/lucisgit/moodle

This commit is contained in:
Damyon Wiese
2014-10-08 09:53:53 +08:00
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;
}