Skip to content

Commit

Permalink
Update Download.php
Browse files Browse the repository at this point in the history
fix xss via fileid
  • Loading branch information
ranjit-git committed Jul 21, 2021
1 parent ec6ef20 commit 6bb08b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Classes/Download.php
Expand Up @@ -52,7 +52,7 @@ public function returnFilesIds($file_ids)
if (current_role_in($this->check_level)) {
$file_list = array();
foreach($file_ids as $key => $data) {
$file_list[] = $data['value'];
$file_list[] = int($data['value']); //file-id must be int
}
ob_clean();
flush();
Expand Down

0 comments on commit 6bb08b0

Please sign in to comment.