mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Escape form validation messages (SS-2013-008)
This commit is contained in:
parent
02ede1e811
commit
81ccb8d78e
@ -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.
|
||||
*
|
||||
|
@ -73,6 +73,10 @@ class FormField extends RequestHandler {
|
||||
*/
|
||||
protected $customValidationMessage = "";
|
||||
|
||||
public static $casting = array(
|
||||
'Message' => 'Text'
|
||||
);
|
||||
|
||||
/**
|
||||
* Create a new field.
|
||||
* @param name The internal field name, passed to forms.
|
||||
|
Loading…
Reference in New Issue
Block a user