Implemented echoarea/filearea security
This commit is contained in:
@@ -21,12 +21,17 @@ class FileareaController extends Controller
|
||||
'description' => 'required',
|
||||
'active' => 'required|boolean',
|
||||
'show' => 'required|boolean',
|
||||
'nodelist' => 'nullable|string|max:12'
|
||||
'nodelist' => 'nullable|string|max:12',
|
||||
'sec_read' => 'required|integer|min:0|max:7',
|
||||
'sec_write' => 'required|integer|min:0|max:7',
|
||||
]);
|
||||
|
||||
foreach (['name','description','active','show','notes','domain_id'] as $key)
|
||||
$o->{$key} = $request->post($key);
|
||||
|
||||
$o->setRead($request->post('sec_read'));
|
||||
$o->setWrite($request->post('sec_write'));
|
||||
|
||||
$o->save();
|
||||
|
||||
if ($request->post('nodelist')) {
|
||||
|
Reference in New Issue
Block a user