ZF-3981: Zend_Validate_file_Extension: Should not be case-sensitive
Description
for example: jpg != JPG != Jpg
FIX:
Extension.php - addExtension - line 134: $this->_extension = strtolower(implode(',', $extensions));
Extension.php - isValid - line 163: if (in_array(strtolower($info['extension']), $extensions)) {
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-22T14:55:51.000+0000
Scheduling for RC3
Posted by Thomas Weidner (thomas) on 2008-08-23T13:35:27.000+0000
This is only true for windows.
In *nix there is a difference if a file is named a.gif or a.GIF... these are two files. Because this adapter is not designed for HTTP only the solution is not just to lowercase all extensions !!!
Posted by Thomas Weidner (thomas) on 2008-08-23T14:49:43.000+0000
Behaviour changed with r10985. Default is case insensitive, can be changed to sensitive by parameter.
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:39.000+0000
Updating for the 1.6.0 release.