mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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:
parent
4553c3d2f0
commit
97ee3e2242
@ -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
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user