[BUGFIX] Fix processed files if original has special chars 29/18529/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 21 Mar 2013 23:09:15 +0000 (00:09 +0100)
committerBenjamin Mack <benni@typo3.org>
Sat, 6 Apr 2013 14:57:12 +0000 (16:57 +0200)
commitf9ebcda0dfe0f0cb6b005a092f43afb24ef34a87
tree402fa70cab33b7f0b405001b3a2c5376bc9f35f0
parentd13dce571cb42f7a44b3762fbdea2294154f4a5b
[BUGFIX] Fix processed files if original has special chars

Filenames of files uploaded in TYPO3 CMS before 6.0.1
can contain problematic characters, because filename
sanitizing of added files was introduced with 6.0.1.

The same happens if files are not uploaded through
the TYPO3 backend and then indexed.

The filenames of processed files are sanitized when
adding them to the storage but the not sanitized
original filename identifier is kept in the database
record of the processed files, which causes wrong
generated paths.

Update the identifier of the processed file along
with all other properties after adding them
to the storage.

Change-Id: I53e4eb42def291ba88ce18209a348b1e2f592185
Resolves: #45221
Related: #42925
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/18529
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/ProcessedFile.php