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:
skodak
2009-01-05 21:37:20 +00:00
parent 9843511764
commit 11e7b506ce
28 changed files with 198 additions and 196 deletions
+1 -4
View File
@@ -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;
}