diff options
Diffstat (limited to 'static/php')
| -rw-r--r-- | static/php/upload.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/php/upload.php b/static/php/upload.php index 39a13d9..dc1ba81 100644 --- a/static/php/upload.php +++ b/static/php/upload.php @@ -88,6 +88,10 @@ function uploadFile($file) $finfo = new finfo(FILEINFO_MIME_TYPE); $file->mime = $finfo->file($file->tempfile); + // Fix mime type if it is returned wrong + if ($file->mime == 'image/svg') + $file->mime .= '+xml'; + // Check if mime type is blocked if (!empty($FILTER_MIME)) { if ($FILTER_MODE == true) { //whitelist mode |
