Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 16ff5715 authored by Astor Bizard's avatar Astor Bizard
Browse files

Security fix: restored submitted data cleaning.

parent b9f8c422
......@@ -72,11 +72,11 @@ if ( !has_capability('mod/randomactivity:manage', $context)
die();
}
if ($submitteddata = data_submitted()) {
if (data_submitted()) {
// Form has been submitted.
if (confirm_sesskey() && has_capability('mod/randomactivity:manage', $context)) {
$module->seed = $submitteddata->seed;
$module->activities = trim($submitteddata->activities);
$module->seed = required_param('seed', PARAM_INT);
$module->activities = trim(required_param('activities', PARAM_RAW));
try {
randomactivity_update_instance($module);
$message = get_string('changesapplied', RANDOMACTIVITY);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment