API Escape form validation messages (SS-2013-008)

This commit is contained in:
Ingo Schommer 2013-09-24 14:27:35 +02:00
parent 02ede1e811
commit 81ccb8d78e
2 changed files with 8 additions and 0 deletions

View File

@ -137,6 +137,10 @@ class Form extends RequestHandler {
*/
protected $extraClasses = array();
public static $casting = array(
'Message' => 'Text'
);
/**
* Create a new form, with the given fields an action buttons.
*

View File

@ -72,6 +72,10 @@ class FormField extends RequestHandler {
* @var Custom Validation Message for the Field
*/
protected $customValidationMessage = "";
public static $casting = array(
'Message' => 'Text'
);
/**
* Create a new field.