[FOLLOWUP] Harmonize allowed characters of backend usernames
[Packages/TYPO3.CMS.git] / 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'];