-
Bug
-
Resolution: Fixed
-
Critical
-
2.4, 2.4.6, 2.5.2
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-40267-master -
When using maxlength rule on moodle form with utf8 lang
you can actually add half of the chars in the rule for example in most of the activities mod_form
the name max length is 255 but in utf8 you can add only 127 chars
$mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
It's happened because pear HTML_QuickForm Rule_Range class use strlen instead of using mb_strlen and encoding format
- has a non-specific relationship to
-
MDL-42270 When section name limit is exceeded no suitable error is provided.
- Closed