Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/calendar/set.php

    r136 r1331  
    4242require_once($CFG->dirroot.'/calendar/lib.php');
    4343
    44 require_sesskey();
    45 
    4644$var = required_param('var', PARAM_ALPHA);
    4745$return = clean_param(base64_decode(required_param('return', PARAM_RAW)), PARAM_LOCALURL);
     
    5250    $return = new moodle_url($return);
    5351}
     52
     53if (!confirm_sesskey()) {
     54    // Do not call require_sesskey() since this page may be accessed without session (for example by bots).
     55    redirect($return);
     56}
     57
    5458$url = new moodle_url('/calendar/set.php', array('return'=>base64_encode($return->out_as_local_url(false)), 'course' => $courseid, 'var'=>$var, 'sesskey'=>sesskey()));
    5559$PAGE->set_url($url);
Note: See TracChangeset for help on using the changeset viewer.