Failure

User tests: Successful: Unsuccessful:

avatar pdxfixit
pdxfixit
1 Aug 2013

If $format = '', then the first check is included in the second.
Also, if a file extension "foo.0" were to be uploaded, ("0" == false) evaluates as true.

avatar pdxfixit pdxfixit - open - 1 Aug 2013
avatar elinw
elinw - comment - 2 Aug 2013

The 0 is actually returned as '0' not 0 so it evaluates as true. Currently it would be very weird to ever get a false at all (that's part of the problem, you get an empty string not a false) but doing a strict test is reasonable.

avatar brianteeman
brianteeman - comment - 13 Oct 2013

Thanks for your contribution - At this time we are only using github as the place to submit code fixes, the actual reporting of issues and testing fixes is still taking place on Joomlacode.

As it has been some time since you opened this issue can you please confirm that it is still valid with the current Master or Joomla 3.2 beta. If it is no longer valid then please can you close this issue. Otherwise please can you:

1) Open an item on the Joomlacode tracker in the appropriate area.

CMS Bug Reports: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103

CMS Feature Requests: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549

2) After submitting the item to the Joomlacode tracker, add a link to the Joomlacode tracker item here and make sure that you add a link to this GitHub issue or pull request on the joomlacode tracker item.

avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
Build .
avatar brianteeman
brianteeman - comment - 26 Sep 2014

As this function has now been deprecated and removed I am closing this

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar brianteeman brianteeman - change - 26 Sep 2014
Status Pending Closed
avatar brianteeman brianteeman - close - 26 Sep 2014
avatar brianteeman brianteeman - change - 26 Sep 2014
Closed_Date 0000-00-00 00:00:00 2014-09-26 14:12:28

Add a Comment

Login with GitHub to post a comment