MDL-49034 enrol_self: Enforce maxlength in self enrolment form fields.
commit7e36bb719723f0df96472c46787719e184760470
authorMatt Porritt <mattp@catalyst-au.net>
Mon, 2 Feb 2015 02:21:46 +0000 (2 13:21 +1100)
committerMatt Porritt <mattp@catalyst-au.net>
Tue, 10 Feb 2015 02:21:12 +0000 (10 13:21 +1100)
treebeb4af94f60e2a0e2efa4fc48eebd0c881449357
parent4c27f52d91102e249a0e68e70229297e4a9bc07e
MDL-49034 enrol_self: Enforce maxlength in self enrolment form fields.

Alter self enrolment creation form to enforce max field lengths.
Limit "Custom instance name" (name) form field to 255 characters via maxlength.
Limit "Enrolment key" (password) form field to 50 characters via maxlength.

Fix for when the form is submitted causing a database write error to be thrown
as corresponding field "name" in the table mdl_enrol is set to varchar(255) and
database field "password" is varying(50).
enrol/self/edit_form.php