Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28197 adding slashes to group name when creating group in user up…

…load
  • Loading branch information...
commit ffd3e38977685ae119bd00d05383c81a01ad0c48 1 parent 85c123b
@marinaglancy marinaglancy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/uploaduser.php
View
2  admin/uploaduser.php
@@ -665,7 +665,7 @@
$newgroupdata = new object();
$newgroupdata->name = $addgroup;
$newgroupdata->courseid = $ccache[$shortname]->id;
- if ($ccache[$shortname]->groups[$addgroup]->id = groups_create_group($newgroupdata)){
+ if ($ccache[$shortname]->groups[$addgroup]->id = groups_create_group(addslashes_recursive($newgroupdata))){
$ccache[$shortname]->groups[$addgroup]->name = $newgroupdata->name;
} else {
$upt->track('enrolments', get_string('unknowngroup', 'error', $addgroup), 'error');
Please sign in to comment.
Something went wrong with that request. Please try again.