mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Allow Form->forTemplate() URL access (fixes #788)
Need to specifically whitelist URL-accessible actions now.
Used in "Insert Link" form in HtmlEditorField.
Regression from 1edf45fbed
This commit is contained in:
parent
83726b21a2
commit
09b31c642f
@ -149,7 +149,11 @@ class Form extends RequestHandler {
|
|||||||
*/
|
*/
|
||||||
protected $attributes = array();
|
protected $attributes = array();
|
||||||
|
|
||||||
private static $allowed_actions = array('handleField', 'httpSubmission');
|
private static $allowed_actions = array(
|
||||||
|
'handleField',
|
||||||
|
'httpSubmission',
|
||||||
|
'forTemplate',
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new form, with the given fields an action buttons.
|
* Create a new form, with the given fields an action buttons.
|
||||||
|
Loading…
Reference in New Issue
Block a user