* test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagAttributeTests.java,

src/net/sf/acegisecurity/taglibs/authz/AuthorizeTag.java:
  Added three new tests to assert that whitespace is ignored in the
  attribute's content.
This commit is contained in:
Francois Beausoleil
2004-04-02 20:59:16 +00:00
parent fb753bde38
commit ea0e6b2577
2 changed files with 25 additions and 1 deletions

View File

@@ -124,7 +124,7 @@ public class AuthorizeTag extends TagSupport {
while (tokenizer.hasMoreTokens()) {
String role = tokenizer.nextToken();
requiredAuthorities.add(new GrantedAuthorityImpl(role));
requiredAuthorities.add(new GrantedAuthorityImpl(role.trim()));
}
return requiredAuthorities;