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 8c51626 commit 067d0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,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 067d0ef

Please sign in to comment.