[BUGFIX] Fix inconsistencies in getTSConfig in BackenuserAuth 32/23032/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 10 Aug 2013 21:18:05 +0000 (23:18 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 12 Aug 2013 19:02:07 +0000 (21:02 +0200)
commitc43e90db79ef9442c0fbd83cc289c78e8b44d032
treedbae0736dbc942930c3416c7778a1ab555778739
parent287d6c7c5b99bccac56a34883a8db4d19e468ab6
[BUGFIX] Fix inconsistencies in getTSConfig in BackenuserAuth

BackenuserAuthentication::getTSConfig() behaves
inconsistently when an object string is given with
multiple sections but no result in the actual TSConfig
of the user. Other than noted in the method declaration,
the method returns an empty array instead of an array
where the 'properties' key is null.

Additionally we fix a bug which caused wrong results
if "0" was used as a key in configuration and accessed
with something like "permissions.file.0"

Resolves: #51007
Releases: 6.0, 6.1, 6.2
Change-Id: I80fc7398c1955ff77d052377e3ba81bb8aea01cf
Reviewed-on: https://review.typo3.org/23032
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php