[BUGFIX] EM: Trim whitespace in search field 02/42602/3
authorAlexander Opitz <opitz.alexander@googlemail.com>
Fri, 14 Aug 2015 07:53:30 +0000 (09:53 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 14 Aug 2015 10:08:48 +0000 (12:08 +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/42602
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/extensionmanager/Classes/Controller/ListController.php

index bb7c719..acf30ea 100644 (file)
@@ -164,6 +164,7 @@ class ListController extends AbstractController {
         */
        public function terAction($search = '') {
                $this->addComposerModeNotification();
+               $search = trim($search);
                if (!empty($search)) {
                        $extensions = $this->extensionRepository->findByTitleOrAuthorNameOrExtensionKey($search);
                } else {