[BUGFIX] Unify the filename sanitation for upload, create, rename 52/56352/2
authorWolfgang Klinger <wolfgang@wazum.com>
Fri, 9 Mar 2018 22:40:40 +0000 (23:40 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 27 Apr 2018 06:09:05 +0000 (08:09 +0200)
commit92b94046c38e4f14f3265def4477e234f5ba33cf
treecb727762290b4ab33b9e0f83a79671f0ae3bde74
parent25aede9567aad14558262cc9049c9c351e148ad1
[BUGFIX] Unify the filename sanitation for upload, create, rename

isValidFilename allows other characters in file names
than sanitizeFileName. This patch sanitizes new file
names automatically (like it’s done for uploads) and
adds a warning for the user about the invalid original
file name for upload, create and rename.

Resolves: #84178
Releases: master, 8.7
Change-Id: I8f5ff6a0c601f0227c40fe7b401eeb15159b29a6
Reviewed-on: https://review.typo3.org/56352
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/core/Resources/Private/Language/fileMessages.xlf