[FOLLOWUP] Harmonize allowed characters of backend usernames 01/36501/2
authorOliver Klee <typo3-coding@oliverklee.de>
Sat, 31 Jan 2015 13:49:22 +0000 (14:49 +0100)
committerSteffen Müller <typo3@t3node.com>
Sat, 31 Jan 2015 13:52:07 +0000 (14:52 +0100)
Drop an now-unnecessary trim on the user name.

Relates: #50875
Releases: master
Change-Id: I771a5340212da81da08e8cb668e096acd97dc9b9
Reviewed-on: http://review.typo3.org/36501
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/install/Classes/Controller/Action/Tool/ImportantActions.php

index e467ec8..37dcdbd 100644 (file)
@@ -196,7 +196,7 @@ class ImportantActions extends Action\AbstractAction {
         */
        protected function createAdministrator() {
                $values = $this->postValues['values'];
-               $username = preg_replace('/\\s/i', '', trim($values['newUserUsername']));
+               $username = preg_replace('/\\s/i', '', $values['newUserUsername']);
                $password = $values['newUserPassword'];
                $passwordCheck = $values['newUserPasswordCheck'];