ZF-3981: Zend_Validate_file_Extension: Should not be case-sensitive

Issue Type: Bug Created: 2008-08-18T02:59:25.000+0000 Last Updated: 2008-09-02T10:39:39.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Matthias Sch. (matthias-sch) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:


for example: jpg != JPG != Jpg


Extension.php - addExtension - line 134: $this->_extension = strtolower(implode(',', $extensions));

Extension.php - isValid - line 163: if (in_array(strtolower($info['extension']), $extensions)) {


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.