From: poltawski Date: Wed, 26 Aug 2009 09:52:14 +0000 (+0000) Subject: course/jumpto.php MDL-19886 Don't depend on HTTP_REFFER header X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97ee3e2242633a0b5266b4c303f479de4e30f8e2;p=moodle.git course/jumpto.php MDL-19886 Don't depend on HTTP_REFFER header thanks to Jordan Tomkinson for the patch, from MOODLE_19_STABLE --- diff --git a/course/jumpto.php b/course/jumpto.php index 3cea4f459d..cf1f91e1d3 100644 --- a/course/jumpto.php +++ b/course/jumpto.php @@ -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 + } ?>