Skip to content

Commit

Permalink
course/jumpto.php MDL-19886 Don't depend on HTTP_REFFER header
Browse files Browse the repository at this point in the history
thanks to Jordan Tomkinson for the patch, from MOODLE_19_STABLE
  • Loading branch information
poltawski committed Aug 26, 2009
1 parent 4553c3d commit 97ee3e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion course/jumpto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

?>

0 comments on commit 97ee3e2

Please sign in to comment.