From: moodler Date: Wed, 3 Oct 2007 03:33:57 +0000 (+0000) Subject: Make sure that the role names gets filtered in get_assignable_roles() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2125f23e199562914c49ca3310d07c7954805704;p=moodle.git Make sure that the role names gets filtered in get_assignable_roles() --- diff --git a/lib/accesslib.php b/lib/accesslib.php index a5e566e34a..034d1610e7 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -3924,6 +3924,9 @@ function get_assignable_roles ($context, $field="name") { $roles[$r->id] = $r->{$field}; } } + foreach ($roles as $roleid => $rolename) { + $roles[$roleid] = strip_tags(format_string($rolename, true)); + } return $roles; }