MDL-69240 tool_moodlenet: Clean MoodleNet profile field

Amended by: Eloy Lafuente (stronk7) <[email protected]>
- adjust versions for every branch.
- modify verify_webfinger->profileurl external to PARAM_NOTAGS.
This commit is contained in:
Mathew May
2020-09-07 17:36:22 +02:00
committed by Eloy Lafuente (stronk7)
parent 644b80410d
commit aa13890df0
6 changed files with 25 additions and 5 deletions
+2 -1
View File
@@ -301,7 +301,8 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
$mform->addHelpButton('maildisplay', 'emaildisplay');
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
$mform->setType('moodlenetprofile', PARAM_RAW_TRIMMED);
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
$mform->setType('city', PARAM_TEXT);