mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix minor html encoding issue in SecurityAdmin (#6240)
This commit is contained in:
parent
1df533298d
commit
d7ed308e17
@ -8,6 +8,7 @@ use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\FormAction;
|
||||
use SilverStripe\Forms\RequiredFields;
|
||||
use SilverStripe\Forms\Form;
|
||||
use SilverStripe\ORM\FieldType\DBField;
|
||||
use SilverStripe\Security\Group;
|
||||
use SilverStripe\Security\GroupCsvBulkLoader;
|
||||
|
||||
@ -52,10 +53,10 @@ class GroupImportForm extends Form {
|
||||
new LiteralField('Help', $helpHtml),
|
||||
$fileField = new FileField(
|
||||
'CsvFile',
|
||||
_t(
|
||||
DBField::create_field('HTMLFragment', _t(
|
||||
'SecurityAdmin_MemberImportForm.FileFieldLabel',
|
||||
'CSV File <small>(Allowed extensions: *.csv)</small>'
|
||||
)
|
||||
))
|
||||
)
|
||||
);
|
||||
$fileField->getValidator()->setAllowedExtensions(array('csv'));
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace SilverStripe\Admin;
|
||||
|
||||
use SilverStripe\ORM\FieldType\DBField;
|
||||
use SilverStripe\Security\Group;
|
||||
use SilverStripe\Security\MemberCsvBulkLoader;
|
||||
use SilverStripe\Forms\LiteralField;
|
||||
@ -52,10 +53,10 @@ class MemberImportForm extends Form {
|
||||
new LiteralField('Help', $helpHtml),
|
||||
$fileField = new FileField(
|
||||
'CsvFile',
|
||||
_t(
|
||||
DBField::create_field('HTMLFragment', _t(
|
||||
'SecurityAdmin_MemberImportForm.FileFieldLabel',
|
||||
'CSV File <small>(Allowed extensions: *.csv)</small>'
|
||||
)
|
||||
))
|
||||
)
|
||||
);
|
||||
$fileField->getValidator()->setAllowedExtensions(array('csv'));
|
||||
|
Loading…
Reference in New Issue
Block a user