Skip to content

Commit

Permalink
Some not-very-significant cleanups while fixing another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 18, 2005
1 parent 0182c65 commit 3ace732
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

include("../config.php");

$enrol = optional_param('enrol', $CFG->enrol);
$enrol = optional_param('enrol', $CFG->enrol, PARAM_ALPHA);

require_login();

Expand All @@ -20,7 +20,6 @@
error(get_string('confirmsesskeybad', 'error'));
}

$enrol = clean_filename($enrol);
require_once("$CFG->dirroot/enrol/$enrol/enrol.php"); /// Open the class

$enrolment = new enrolment_plugin();
Expand Down

0 comments on commit 3ace732

Please sign in to comment.