]> git.mjollnir.org Git - moodle.git/commit
Security fix for:
authormartin <martin>
Wed, 28 Aug 2002 15:07:46 +0000 (15:07 +0000)
committermartin <martin>
Wed, 28 Aug 2002 15:07:46 +0000 (15:07 +0000)
commitc21c671d747120751110444a6cc9c1c907d95d14
treedcf473d2d9c86190c970108459417707774c0b9a
parent6e4c09db98d66665acfb86dd988ea9bdf468475b
Security fix for:

  Internet Explorer bug that allows sends cookies to different sites if
  they have the same ending.  eg moodle.com cookie is sent to smec.moodle.com!!

  Also fixes case where multiple moodle installations may be in different
  directories on the same server.  When you go from one to the other the
  first session will be destroyed now (you can't be logged in the two
  at the same time).  It's just a lot safer this way, for now.

Basically this works by storing the wwwroot variable in the session
and checking it for every page.
lib/moodlelib.php
login/index.php