Permalink
Browse files

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

…load
  • Loading branch information...
1 parent 85c123b commit ffd3e38977685ae119bd00d05383c81a01ad0c48 @marinaglancy marinaglancy committed Jul 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/uploaduser.php
View
@@ -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');

0 comments on commit ffd3e38

Please sign in to comment.