diff options
author | Andrey Andreev <narf@bofh.bg> | 2011-12-11 13:57:36 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2011-12-11 13:57:36 +0100 |
commit | 3b6ff4ddc5ca433ba7b68a51a617c00b93511889 (patch) | |
tree | 1ba99631baad35c044b6a25f4030d04f55dd36c0 /system/libraries | |
parent | 2f93794ba928d7f70a38dd7d3813a2d17962a4e5 (diff) |
Fix regular expression for validating MIME type string
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 564d6000e..c72fa3c6d 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -1019,7 +1019,7 @@ class CI_Upload { protected function _file_mime_type($file) { // We'll need this to validate the MIME info string (e.g. text/plain; charset=us-ascii) - $regexp = '/^([a-z\-]+\/[a-z0-9\-]+);\s.+$/'; + $regexp = '/^([a-z\-]+\/[a-z0-9\-\.\+]+);\s.+$/'; /* Fileinfo extension - most reliable method * |