Bug #42925
File-Upload does not sanitize umlauts in filenames
Status: | Resolved | Start date: | 2012-11-13 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | File Abstraction Layer (FAL) | Spent time: | - | |
Target version: | 6.0.0-RC2 | |||
TYPO3 Version: | 6.0 | Is Regression: | ||
PHP Version: | 5.4 | Sprint Focus: | ||
Complexity: | medium |
Description
When I upload an image file with the following name
smürfé.jpg
this file does not get renamed to something like
smuerfe.jpg
or the like as expected.
I tried to configure the System to explicitely not use an UTF8Filesystem (config option was undefined so I set it to "0"). Independent of that setting, the file is stored with a filename with Umlauts which does not work on our server as the filesystem is not UTF-8 capable.
Related issues
Associated revisions
[BUGFIX] File-Upload does not sanitize umlauts in filenames
This patch sanitizes file names for uploaded files, fixing thumbnail
and deletion issues for files with umlauts.
Change-Id: I9c02e357b7b37d1c09656ed14f50a8adb7593d52
Fixes: #42925
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17464
Reviewed-by: Tilo Baller
Tested-by: Tilo Baller
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[BUGFIX] File-Upload does not sanitize umlauts in filenames
This patch sanitizes file names for uploaded files, fixing thumbnail
and deletion issues for files with umlauts.
Change-Id: I9c02e357b7b37d1c09656ed14f50a8adb7593d52
Fixes: #42925
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17486
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[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
[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
History
#1 Updated by Patrick Broens over 2 years ago
- Status changed from New to Accepted
- Target version set to 6.0.0-RC2
- Complexity set to medium
I can reproduce this when [SYS][UTF8filesystem] = 0 or undefined
#2 Updated by Lorenz Ulrich over 2 years ago
File and folder names are only sanitized on renaming, not on uploading.
#3 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 https://review.typo3.org/17464
#4 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 https://review.typo3.org/17464
#5 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/17486
#6 Updated by Christian Weiske over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 21a67afb2eacbf07e47315860ae9d5350d94e063.