]> git.mjollnir.org Git - moodle.git/commitdiff
Strip all tags from role names before use
authormoodler <moodler>
Sat, 23 Sep 2006 12:57:48 +0000 (12:57 +0000)
committermoodler <moodler>
Sat, 23 Sep 2006 12:57:48 +0000 (12:57 +0000)
admin/roles/manage.php

index a1a4f0a3ad3a6666ef5752f504d157223e08d537..5ad8c94e2a4dcff28a6272ca274ddd5627057058 100755 (executable)
         }
 
         foreach ($roles as $rolex) {
-            $roleoptions[$rolex->id] = format_string($rolex->name);
+            $roleoptions[$rolex->id] = strip_tags(format_string($rolex->name));
         }
 
         // this is the array holding capabilities of this role sorted till this context