Browse files

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

thanks to Jordan Tomkinson for the patch
  • Loading branch information...
1 parent 600bbd4 commit c43b904d33133a44e8d1dc0a7e988c9bba470c3d poltawski committed Aug 26, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/jumpto.php
View
4 course/jumpto.php
@@ -20,6 +20,8 @@
redirect(urldecode($jump));
}
- redirect($_SERVER['HTTP_REFERER']); // Return to sender, just in case
+ if (isset($_SERVER['HTTP_REFERER'])) {
+ redirect($_SERVER['HTTP_REFERER']); // Return to sender, just in case
+ }
?>

0 comments on commit c43b904

Please sign in to comment.