Zend Framework

Problem with multiple dots in the file name

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.2
  • Fix Version/s: 1.6.2
  • Component/s: Zend_Validate_File
  • Labels:
    None

Description

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

Activity

Hide
Thomas Weidner added a comment -

I don't see how you should get this output.

In both, branch 1.6 and trunk (1.7) the extension is detected by

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.

Show
Thomas Weidner added a comment - I don't see how you should get this output. In both, branch 1.6 and trunk (1.7) the extension is detected by
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.
Hide
Thomas Weidner added a comment -

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 ?

Show
Thomas Weidner added a comment - 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 ?
Hide
André Hoffmann added a comment -

Yes you are right, I'm using 1.6.1.

Didn't find a ticket for it though.

Nevermind.

Show
André Hoffmann added a comment - Yes you are right, I'm using 1.6.1. Didn't find a ticket for it though. Nevermind.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: