MDL-80317 auth_oauth2: Restrict login redirect to local url
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
require_once('../../config.php');
|
||||
|
||||
$issuerid = required_param('id', PARAM_INT);
|
||||
$wantsurl = optional_param('wantsurl', '', PARAM_URL);
|
||||
$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL);
|
||||
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_url(new moodle_url('/auth/oauth2/login.php', ['id' => $issuerid]));
|
||||
|
||||
Reference in New Issue
Block a user