From 067d0efe85c54988870bb604886175daba7a16a7 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 16fd1684893..b3874644107 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -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)) {