Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.0
-
Fix Version/s: 1.10.2
-
Component/s: Zend_Validate_File
-
Labels:None
Description
...
Within the constructor it defines all allowed image mime types but you can't define really all.
I think it's better to remove all 'image/*' types and add a simple 'image' to allowed mime list.
For example currently "image/pjpeg" isn't an image.
Nope:
This would unsecure this validator as someone could simply set a own type like "image/blabla" which would then be accepted.
On the other hand there are some mimetypes which are NO images and still use the image mimetype (image processing programs). These are actually NOT accepted by this validator.
The existing list of mimetypes is build from the official accepted mimetype list. You can still add own mimetypes or also set "images" when you want to get unsecure.
Other image-types could be added per request, but until now there was none.