mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 23:02:15 +00:00
SEC-820: Expand regular expression used in hierarchical roles.
This commit is contained in:
parent
6493df13f8
commit
7f38c656ca
@ -126,7 +126,7 @@ public class RoleHierarchyImpl implements RoleHierarchy {
|
|||||||
* references a set of the reachable lower roles.
|
* references a set of the reachable lower roles.
|
||||||
*/
|
*/
|
||||||
private void buildRolesReachableInOneStepMap() {
|
private void buildRolesReachableInOneStepMap() {
|
||||||
String parsingRegex = "(\\s*(\\w+)\\s*\\>\\s*(\\w+))";
|
String parsingRegex = "(\\s*([^\\s>]+)\\s*\\>\\s*([^\\s>]+))";
|
||||||
Pattern pattern = Pattern.compile(parsingRegex);
|
Pattern pattern = Pattern.compile(parsingRegex);
|
||||||
|
|
||||||
Matcher roleHierarchyMatcher = pattern.matcher(roleHierarchyStringRepresentation);
|
Matcher roleHierarchyMatcher = pattern.matcher(roleHierarchyStringRepresentation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user