diff --git a/public/auth/oauth2/login.php b/public/auth/oauth2/login.php index 20b6c6d234c..c2d39169d30 100644 --- a/public/auth/oauth2/login.php +++ b/public/auth/oauth2/login.php @@ -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]));