Skip to content
Snippets Groups Projects
Commit fb53445e authored by Daniel Goerz's avatar Daniel Goerz Committed by Christian Kuhn
Browse files

[BUGFIX] EXT:sys_action: prepend prefix only once on BE-User edit

Change-Id: I4e00d5a2198f6f3f98f8a08161188d5982962290
Resolves: #27440
Resolves: #31110
Related: #68370
Releases: master
Reviewed-on: http://review.typo3.org/41712


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ea9d9ef6
Branches
Tags
No related merge requests found
......@@ -490,7 +490,11 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
* @return string Combined username
*/
protected function fixUsername($username, $prefix) {
return trim($prefix) . trim($username);
$prefix = trim($prefix);
if (substr($username, 0, strlen($prefix)) === $prefix) {
$username = substr($username, strlen($prefix));
}
return $prefix . $username;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment