MDL-72937 user: restrict Moodlenet profile field length.

This commit is contained in:
Paul Holden
2022-01-23 23:00:54 +00:00
parent e63604fb6d
commit 21989c575a
+1 -1
View File
@@ -302,7 +302,7 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
$mform->addHelpButton('maildisplay', 'emaildisplay');
if (get_config('tool_moodlenet', 'enablemoodlenet')) {
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'), 'maxlength="255" size="30"');
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
}