]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12662, fix undefined index(IIS)
authordongsheng <dongsheng>
Fri, 11 Apr 2008 05:34:23 +0000 (05:34 +0000)
committerdongsheng <dongsheng>
Fri, 11 Apr 2008 05:34:23 +0000 (05:34 +0000)
user/index.php

index 257b1c6fb418fffd8305ddb05160c8d35bafb4c6..7c8e76306e267cadfccc985b2385626ff982f199 100644 (file)
         echo '<form action="action_redir.php" method="post" id="participantsform" onsubmit="return checksubmit(this);">';
         echo '<div>';
         echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
-        echo '<input type="hidden" name="returnto" value="'.s($_SERVER['REQUEST_URI']).'" />';
+        echo '<input type="hidden" name="returnto" value="'.s(me()).'" />';
     }
 
     if ($CFG->longtimenosee > 0 && $CFG->longtimenosee < 1000 && $totalcount > 0) {