Skip to content

Commit 4d89b63

Browse files
committed
Integratedd CSRF protection added
1 parent 084000e commit 4d89b63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_tools/studio/application/Classes/Forms/Class/Property.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,15 @@ public static function getTypesScope() : array
9595
$_constants = (new ReflectionClass( Form_Field::class ))->getConstants();
9696
$constants = [];
9797
foreach($_constants as $constant=>$value) {
98-
9998
$constants[$value] = 'Form_Field::'.$constant;
10099
}
101100

102101
$types = [];
103102
foreach(Factory_Form::getRegisteredFieldTypes() as $type) {
103+
if($type==Form_Field::TYPE_CSRF_PROTECTION) {
104+
continue;
105+
}
106+
104107
$types[$type] = $constants[$type]??$type;
105108
}
106109

0 commit comments

Comments
 (0)