Skip to content

Commit

Permalink
MDL-62939 user: Fix field type of the user profile description
Browse files Browse the repository at this point in the history
As this is an editor element field, the it is supposed to be PARAM_RAW.
Otherwise it cleans-up certain non-HTML syntax such as Markdown
blockquote characters.
  • Loading branch information
mudrd8mz committed Jul 18, 2018
1 parent a7c1f44 commit 4b6910d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/editlib.php
Expand Up @@ -339,7 +339,7 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
}

$mform->addElement('editor', 'description_editor', get_string('userdescription'), null, $editoroptions);
$mform->setType('description_editor', PARAM_CLEANHTML);
$mform->setType('description_editor', PARAM_RAW);
$mform->addHelpButton('description_editor', 'userdescription');

if (empty($USER->newadminuser)) {
Expand Down

0 comments on commit 4b6910d

Please sign in to comment.