Bug #62009

Rewrite URI Filename could be empty

Added by Bernhard Esders almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Due to an error in the following method, it may happen that an empty file name is generated.
This happens whenever the file name does not consist of at least one ASCII character.

TYPO3\Flow\Resource\Publishing\AbstractResourcePublishingTarget->rewriteFilenameForUri

protected function rewriteFilenameForUri($filename) {
return preg_replace(array('/ /', '/_/', '/[^-a-z0-9.]/i'), array('-', '-', ''), $filename);
}

Thus, it is not possible to load the file.

#1

Updated by Bernhard Esders almost 7 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow

Also available in: Atom PDF