Permalink
Browse files

mnet: check that sesskey please!

  • Loading branch information...
martinlanghoff
martinlanghoff committed Jan 19, 2007
1 parent cfa73a9 commit a819a51ad2b4bba473cacd297b5f770ef75b298b
Showing with 9 additions and 0 deletions.
  1. +4 −0 admin/mnet/enr_course_enrol.php
  2. +5 −0 admin/mnet/enr_courses.php
@@ -6,6 +6,10 @@
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/xmlrpc/client.php');
+ if (!confirm_sesskey()) {
+ error(get_string('confirmsesskeybad', 'error'));
+ }
+
$adminroot = admin_get_root();
admin_externalpage_setup('mnetenrol', $adminroot);
$CFG->pagepath = 'admin/mnet';
@@ -5,6 +5,11 @@
require_once(dirname(__FILE__) . "/../../config.php");
require_once($CFG->libdir.'/adminlib.php');
+ if (!confirm_sesskey()) {
+ error(get_string('confirmsesskeybad', 'error'));
+ }
+
+
$adminroot = admin_get_root();
admin_externalpage_setup('mnetenrol', $adminroot);
$CFG->pagepath = 'admin/mnet';

0 comments on commit a819a51

Please sign in to comment.