MDL-57596 forms: CLEANHTML in persistent forms
authorDamyon Wiese <damyon@moodle.com>
Tue, 7 Mar 2017 03:19:00 +0000 (11:19 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 10 Mar 2017 18:04:48 +0000 (18:04 +0000)
commitac40d8b589820929fe4201a3f0640414e2b9dabd
treee180092c1d553959b746537ee831a0be9d4c2529
parent6e65554ea19f4e90c09864081e47424f8efca02e
MDL-57596 forms: CLEANHTML in persistent forms

Add special handling for text fields with the CLEANHTML type. This should
be used when students and teachers can edit the same field (you can't trust those students).

Applies cleaning on submitted data, and on data stored in the DB before it is put back in an editing form.
13 files changed:
admin/tool/lp/classes/form/competency.php
admin/tool/lp/classes/form/competency_framework.php
admin/tool/lp/classes/form/plan.php
admin/tool/lp/classes/form/template.php
admin/tool/lp/classes/form/user_evidence.php
competency/classes/competency.php
competency/classes/competency_framework.php
competency/classes/plan.php
competency/classes/template.php
competency/classes/user_evidence.php
lib/classes/external/exporter.php
lib/classes/form/persistent.php
lib/classes/persistent.php