Skip to content

Commit

Permalink
improv. remove xss array in permission request (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanByes authored Dec 11, 2021
1 parent 0729df0 commit ec9a384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Controller/PermissionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function admin_index()
if ($this->request->is('post')) {
$permissions = [];
foreach ($this->request->data as $permission => $checked) {
if(is_array($checked))
continue;

list($permission, $rank) = explode('-', $permission);
$permissions[$rank][] = $permission;
}
Expand Down

0 comments on commit ec9a384

Please sign in to comment.