[BUGFIX] uploading extname_1.0.3 (1).zip creates extension "extname (1)" 75/20875/5
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 17 May 2013 15:11:17 +0000 (17:11 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 26 May 2013 17:32:38 +0000 (19:32 +0200)
commitae64cc8b2c0e45227c8941a12edb5022eb465ef3
tree28ca72cb0814be7a6d4c16300a4c86b0a20df89b
parent77f771c440519d340fe34af8e021c2f542cf3876
[BUGFIX] uploading extname_1.0.3 (1).zip creates extension "extname (1)"

The function getExtensionFromZipFile fails to sanitize any output after
the version. As the function is only interested in the part before the
version which must be the extension key, remove any trailing characters.

Add a unit test to document this behavior.

Resolves: #48332
Releases: 6.2, 6.1, 6.0
Change-Id: I09b810d4bce214b6fa38e1a62200560f30d88984
Reviewed-on: https://review.typo3.org/20875
Reviewed-by: Alexander Opitz
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Classes/Controller/UploadExtensionFileController.php
typo3/sysext/extensionmanager/Tests/Unit/Controller/UploadExtensionFileControllerTest.php [new file with mode: 0644]