Issue Details (XML | Word | Printable)

Key: SM-8
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

Allow commas to be escaped in roles

Created: 13/Mar/06 04:00 PM   Updated: 10/May/06 01:52 AM   Resolved: 10/May/06 01:52 AM
Component/s: Menu Core
Affects Version/s: 2.3
Fix Version/s: 2.4



Matt Raible added a comment - 11/Apr/06 04:54 PM
Comment from e-mail thread:

I think the correct pattern would be (?<!\\\\), (using negative lookbehind).

And it would be an idea to precompile the pattern;

protected Pattern delimiters = Pattern.compile("(?<!\\\\),");

String[] allowedRoles = delimiters.split(menu.getRoles());

etc.

Matt Raible made changes - 10/May/06 01:52 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]