From 4b6910d31901253102c2e2ae1f3f2e56005d497d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 18 Jul 2018 14:27:14 +0200 Subject: [PATCH] MDL-62939 user: Fix field type of the user profile description 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. --- user/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/editlib.php b/user/editlib.php index 6a42d72fa8d..c899defe206 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -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)) {