mirror of
https://github.com/moodle/moodle.git
synced 2025-05-02 22:45:03 +02:00
MDL-30805 Require HTML content for the HTML block configuration
This commit is contained in:
parent
f89a83b87b
commit
2ee40a7018
@ -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…
x
Reference in New Issue
Block a user