[BUGFIX] uploading extname_1.0.3 (1).zip creates extension "extname (1)" 78/21078/2
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:58:01 +0000 (19:58 +0200)
commitf1ec4727ee33a3c807131bbcb15d644cc1cb587e
treee0497bc13c086e86b36de8cdccd181ba842b6aa8
parentf177b68e2d376369904241312ed898cb6a19028e
[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/21078
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]