[BUGFIX] Denied file extensions still shown in upload forms 04/47104/2
authorMarco Huber <mail@marco-huber.de>
Tue, 19 Jan 2016 09:54:54 +0000 (10:54 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 5 Mar 2016 14:55:03 +0000 (15:55 +0100)
commit2bf2ab4830c0418580f2a301be7bd2db37f7282a
treee0fc74b9f538f13e35462974f1af19966c811017
parent77829d65b3eb751fc150ff829c3032d26477d53c
[BUGFIX] Denied file extensions still shown in upload forms

The list of denied file extensions does not contain a dot, but our
fileDenyPattern by default starts with a dot. Therefore, although a
check is performed, the file extensions will still be displayed even
though uploading files with the extension is forbidden by
fileDenyPattern.

This commit adds the dot before the extension when performing the
check, effectively hiding forbidden extensions.

Resolves: #72803
Releases: master, 7.6
Change-Id: I2ec3d02e096b46309932604a53ea4c416ba9812a
Reviewed-on: https://review.typo3.org/46072
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
(cherry picked from commit 08011314eb18c111804d1d7fd74a47174ecc7a9d)
Reviewed-on: https://review.typo3.org/47104
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/recordlist/Classes/View/FolderUtilityRenderer.php