Skip to content

Commit

Permalink
MDL-71170 customfield_text: use correct error string
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Mar 22, 2021
1 parent 713b28c commit c197d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customfield/field/text/classes/field_controller.php
Expand Up @@ -113,7 +113,7 @@ public function config_form_validation(array $data, $files = array()) : array {
$errors['configdata[link]'] = get_string('errorconfiglinkplaceholder', 'customfield_text');
} else if (!validateUrlSyntax(str_replace('$$', 'XYZ', $link), 's+H?S?F-E-u-P-a?I?p?f?q?r?')) {
// This validation is more strict than PARAM_URL - it requires the protocol and it must be either http or https.
$errors['configdata[link]'] = get_string('errorconfigdisplaysize', 'customfield_text');
$errors['configdata[link]'] = get_string('errorconfiglinksyntax', 'customfield_text');
}
}
}
Expand Down

0 comments on commit c197d3f

Please sign in to comment.