MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support
This commit is contained in:
+1
-4
@@ -118,9 +118,6 @@ class moodle_session {
|
||||
print_error('sessionipnomatch2', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: add wwwroot check here
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -171,7 +168,7 @@ class moodle_session {
|
||||
}
|
||||
unset($nomoodlecookie); // cleanup
|
||||
|
||||
if (!isset($CFG->cookiesecure) or strpos($CFG->wwwroot, 'https://') !== 0) {
|
||||
if (!isset($CFG->cookiesecure) or (strpos($CFG->wwwroot, 'https://') !== 0 and empty($CFG->sslproxy))) {
|
||||
$CFG->cookiesecure = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user