Issue Type: Bug Created: 2008-10-23T08:22:11.000+0000 Last Updated: 2008-10-24T07:34:11.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)
Reporter: André Hoffmann (antihero) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File
Related issues: Attachments:
Zend_Validate_File fails to identify the file extension of file names with more than one dot.
For example: File name: 41E6HW92CYL.AA240.jpg Extension determined by Zend_Validate_File: AA240.jpg
Posted by Thomas Weidner (thomas) on 2008-10-23T11:39:51.000+0000
I don't see how you should get this output.
In both, branch 1.6 and trunk (1.7) the extension is detected by
<pre class="highlight"> substr($file['name'], strrpos($file['name'], '.') + 1);
in the isValid method. As you see the extension is the last rightest dot to the end. (str r pos). Both files are 5 weeks old and should be in 1.6 as also 1.7 Pre.
Posted by Thomas Weidner (thomas) on 2008-10-23T11:43:59.000+0000
Not in 1.6.1.... but as I said... this bug was solved 5 weeks ago before 1.6.2 has been released. Maybe you are using 1.6.1 and not 1.6.2 ?
Posted by André Hoffmann (antihero) on 2008-10-24T07:33:16.000+0000
Yes you are right, I'm using 1.6.1.
Didn't find a ticket for it though.
Have you found an issue?
See the Overview section for more details.