Added optional_param and required_param just to get it on the plate

This commit is contained in:
moodler 2004-10-01 12:09:52 +00:00
parent 6446885595
commit e0d346ff91
4 changed files with 112 additions and 35 deletions

View file

@ -1,18 +1,18 @@
<?php // $Id$
/*
* Jumps to a given URL. Mostly used for accessibility.
* Jumps to a given URL. Mostly used for accessibility.
*
*/
require('../config.php');
require('../config.php');
$jump = parameter('jump');
$jump = optional_param('jump', '');
if ($jump) {
redirect(urldecode($jump));
}
if ($jump) {
redirect(urldecode($jump));
}
redirect($_SERVER['HTTP_REFERER']);
redirect($_SERVER['HTTP_REFERER']);
?>