course/jumpto.php MDL-19886 Don't depend on HTTP_REFFER header

thanks to Jordan Tomkinson for the patch, from MOODLE_19_STABLE
This commit is contained in:
poltawski 2009-08-26 09:52:14 +00:00
parent 4553c3d2f0
commit 97ee3e2242

View File

@ -20,6 +20,8 @@
redirect(new moodle_url(urldecode($jump)));
}
redirect(new moodle_url($_SERVER['HTTP_REFERER'])); // Return to sender, just in case
if(isset($_SERVER['HTTP_REFERER'])) {
redirect(new moodle_url($_SERVER['HTTP_REFERER'])); // Return to sender, just in case
}
?>