Bug #43195

getLocalizedFilename() chokes on paths with dots.

Added by Karsten Dambekalns over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2012-11-21
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:I18n
Target version:TYPO3 Flow Base Distribution - 2.0 beta 1
PHP Version: Complexity:
Has patch:No Affected Flow version:Git 1.2 (master)

Description

When a path like resource://TYPO3.Neos/Public/JavaScript/ is handed to getLocalizedFilename(), it tries to check for the existence of resource://TYPO3.en.Neos/Public/JavaScript/ - which breaks, unless you happen to have a package TYPO3.en.Neos activated.

Associated revisions

Revision fefb00ea
Added by Karsten Dambekalns over 2 years ago

[BUGFIX] Fix handling of paths with dots in getLocalizedFilename()

When a path like resource://TYPO3.Neos/Public/JavaScript/ is handed to
getLocalizedFilename(), it tries to check for the existence of
resource://TYPO3.en.Neos/Public/JavaScript/ - which breaks, unless you
happen to have a package TYPO3.en.Neos activated.

This change fixes this by using the basename in the check for an
extension.

Change-Id: I3d381f11ff9d1e27818fc0f686ddb2837c820193
Fixes: #43195
Releases: 1.2

History

#1 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16664

#2 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16664

#3 Updated by Karsten Dambekalns over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF