[BUGFIX] Fix processed files if original has special chars 82/19682/2
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:58:19 +0000 (16:58 +0200)
commited988a874cdab2ff66cb006bea714d056cc1d419
treefb0b55e8639814eca0f67ca5605e19cbcc316a87
parent34f30dbdc8e6ff1061b56a00633cbeea38617a67
[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
Reviewed-on: https://review.typo3.org/19682
typo3/sysext/core/Classes/Resource/ProcessedFile.php