diff options
Diffstat (limited to 'php/upload.php')
| -rw-r--r-- | php/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/php/upload.php b/php/upload.php index d63ee5e..ec7968e 100644 --- a/php/upload.php +++ b/php/upload.php @@ -87,11 +87,11 @@ function uploadFile($file) if (!empty($FILTER_MIME)) { if ($FILTER_MODE == true) { //whitelist mode if (!in_array($file->mime, $FILTER_MIME)) { - throw new UploadException(UPLOAD_ERR_EXTENSION); - } + throw new UploadException(UPLOAD_ERR_EXTENSION); + } } else { //blacklist mode if (in_array($file->mime, $FILTER_MIME)) { - throw new UploadException(UPLOAD_ERR_EXTENSION); + throw new UploadException(UPLOAD_ERR_EXTENSION); } } } |
