[BUGFIX] Unify the filename sanitation for upload, create, rename 89/56089/6
authorWolfgang Klinger <wolfgang@wazum.com>
Fri, 9 Mar 2018 22:40:40 +0000 (23:40 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 18 Mar 2018 11:51:54 +0000 (12:51 +0100)
commitcb905282b1cbc6e222697b1872d3efa987f800b5
tree7fb0a9e8274552f76c8e94607b62e7b8c4028300
parentee2cee9dbde58d6a19d0bdf61fe1f9ac816932f1
[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/56089
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Frans Saris <franssaris@gmail.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