]> git.mjollnir.org Git - moodle.git/commitdiff
Make sure that the role names gets filtered in get_assignable_roles()
authormoodler <moodler>
Wed, 3 Oct 2007 03:33:57 +0000 (03:33 +0000)
committermoodler <moodler>
Wed, 3 Oct 2007 03:33:57 +0000 (03:33 +0000)
lib/accesslib.php

index a5e566e34a8dd4e0524c77963649d345a2bab2c8..034d1610e71dc792cddc98827c9b24da5b142104 100755 (executable)
@@ -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;
 }