mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-30805-master-1' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
2fa7c29c06
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ class block_html_edit_form extends block_edit_form {
|
|||
|
||||
$editoroptions = array('maxfiles' => EDITOR_UNLIMITED_FILES, 'noclean'=>true, 'context'=>$this->block->context);
|
||||
$mform->addElement('editor', 'config_text', get_string('configcontent', 'block_html'), null, $editoroptions);
|
||||
$mform->addRule('config_text', null, 'required', null, 'client');
|
||||
$mform->setType('config_text', PARAM_RAW); // XSS is prevented when printing the block contents and serving files
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue