Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

thanks to Jordan Tomkinson for the patch
  • Loading branch information...
commit c43b904d33133a44e8d1dc0a7e988c9bba470c3d 1 parent 600bbd4
poltawski authored
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
+ }
?>
Please sign in to comment.
Something went wrong with that request. Please try again.