MDL-23184 role description accepts any HTML, we have to trust people that can edit roles anyway
This commit is contained in:
+1
-1
@@ -620,7 +620,7 @@ class define_role_table_advanced extends capability_table_with_risks {
|
||||
}
|
||||
|
||||
// Description.
|
||||
$description = optional_param('description', null, PARAM_CLEAN);
|
||||
$description = optional_param('description', null, PARAM_RAW);
|
||||
if (!is_null($description)) {
|
||||
$this->role->description = $description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user