Skip to content

Commit

Permalink
Disallow upload of svg files because of xss attacks #1106
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Oct 17, 2021
1 parent 2f4520d commit 4f15393
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions adm_program/system/classes/TableFile.php
Expand Up @@ -32,7 +32,6 @@ class TableFile extends TableAccess
'jpg' => array('icon' => 'fa-file-image', 'mime-type' => 'image/jpeg', 'viewable' => true),
'jpeg' => array('icon' => 'fa-file-image', 'mime-type' => 'image/jpeg', 'viewable' => true),
'png' => array('icon' => 'fa-file-image', 'mime-type' => 'image/png', 'viewable' => true),
'svg' => array('icon' => 'fa-file-image', 'mime-type' => 'image/svg+xml', 'viewable' => true),
'tiff' => array('icon' => 'fa-file-image', 'mime-type' => 'image/tiff', 'viewable' => true),
'doc' => array('icon' => 'fa-file-word', 'mime-type' => 'application/msword', 'viewable' => false),
'docx' => array('icon' => 'fa-file-word', 'mime-type' => 'application/msword', 'viewable' => false),
Expand All @@ -54,7 +53,6 @@ class TableFile extends TableAccess
'log' => array('icon' => 'fa-file-alt', 'mime-type' => 'text/plain', 'viewable' => true),
'md' => array('icon' => 'fa-file-alt', 'mime-type' => 'text/plain', 'viewable' => true),
'rtf' => array('icon' => 'fa-file-alt', 'mime-type' => 'text/rtf', 'viewable' => false),
'sql' => array('icon' => 'fa-file-alt', 'mime-type' => 'text/plain', 'viewable' => true),
'txt' => array('icon' => 'fa-file-alt', 'mime-type' => 'text/plain', 'viewable' => true),
'pdf' => array('icon' => 'fa-file-pdf', 'mime-type' => 'application/pdf', 'viewable' => true),
'gz' => array('icon' => 'fa-file-archive', 'mime-type' => 'application/gzip', 'viewable' => false),
Expand Down

0 comments on commit 4f15393

Please sign in to comment.