]> git.mjollnir.org Git - moodle.git/commitdiff
ntlmsso login hook: MDL-18596 We need to call httpsrequired() before using httpswwwroot
authoriarenaza <iarenaza>
Thu, 4 Jun 2009 22:24:13 +0000 (22:24 +0000)
committeriarenaza <iarenaza>
Thu, 4 Jun 2009 22:24:13 +0000 (22:24 +0000)
Merged from MOODLE_19_STABLE

auth/ldap/auth.php

index cd36ea6bd1b57f4a3f995c43f600232201fe1d21..f2968dc10571b91f394e7e5d2e4d3913e73f9bfe 100644 (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'