Skip to content
Snippets Groups Projects
Commit 4038aabd authored by Sybille Peters's avatar Sybille Peters Committed by Benni Mack
Browse files

[BUGFIX] Do not abort renameFile if filename sanitizable

It is possible to rename a file with ResourseStorage::renameFile(). This
is also used under the hood, if a file is renamed in the file list.

RenameFile also performs a sanitation of the filename, in case the
filename was not yet sanitized (e.g. convert chars like space, quote,
ö, ê, ß or §).

But if the target filename is the same as the current filename, the
sanitation was not performed. This is now fixed so that the behaviour
is more consistent and sanitizing files with renameFile() is possible.

Resolves: #100683
Releases: main, 12.4
Change-Id: Ia35747f1381f4aac64af50c461e172c9f951cf83
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79787


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 5be21750
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment