[BUGFIX] EM: Trim whitespace in search field 11/42611/3
authorAlexander Opitz <opitz.alexander@googlemail.com>
Fri, 14 Aug 2015 10:12:29 +0000 (12:12 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 14 Aug 2015 10:15:08 +0000 (12:15 +0200)
Leading and trailing whitespaces are now trimmed before the TER is inquired.

Resolves: #69040
Releases: master, 6.2
Change-Id: Iabb641e276358f76732673efb3a23b13d63ac144
Reviewed-on: http://review.typo3.org/42611
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/extensionmanager/Classes/Controller/ListController.php

index 5cc04c4..660a8d6 100644 (file)
@@ -102,6 +102,7 @@ class ListController extends AbstractController {
         * @return void
         */
        public function terAction($search = '') {
+               $search = trim($search);
                if (!empty($search)) {
                        $extensions = $this->extensionRepository->findByTitleOrAuthorNameOrExtensionKey($search);
                } else {