2b11b765dd
Where Moodle sites have a path in their wwwroot, the MNET function that forced remote users to go via their identity provider (to make sure they were logged in) previously directed the user back to a URL like contentprovider.com/moodle/moodle/mod/forum/view.php?f=7 where there should only be one /moodle in the middle of the URL. Slightly tweaked from HEAD to support PHP4