ntlmsso login hook: MDL-18596 We need to call httpsrequired() before using httpswwwroot

Merged from MOODLE_19_STABLE
This commit is contained in:
iarenaza 2009-06-04 22:24:13 +00:00
parent 5e1f1a6e61
commit 265edb48f5

View File

@ -1797,6 +1797,9 @@ class auth_plugin_ldap extends auth_plugin_base {
*/
function loginpage_hook() {
global $CFG, $SESSION;
// HTTPS is potentially required
httpsrequired();
if (($_SERVER['REQUEST_METHOD'] === 'GET' // Only on initial GET of loginpage
|| ($_SERVER['REQUEST_METHOD'] === 'POST'