From 2125f23e199562914c49ca3310d07c7954805704 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 3 Oct 2007 03:33:57 +0000 Subject: [PATCH] Make sure that the role names gets filtered in get_assignable_roles() --- lib/accesslib.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5