Bug #62009
Rewrite URI Filename could be empty
Status: | New | Start date: | 2014-10-02 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: | Flow 2.0.0 |
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.
History
#1 Updated by Bernhard Esders 10 months ago
- Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow