directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cp...@apache.org
Subject directory-fortress-core git commit: FC-208 encoding safe text when finding permissions for user
Date Mon, 08 May 2017 00:40:38 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 53605d447 -> 10120f8de


FC-208 encoding safe text when finding permissions for user


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/10120f8d
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/10120f8d
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/10120f8d

Branch: refs/heads/master
Commit: 10120f8de14f190c63ba581f95a53a7665134b8c
Parents: 53605d4
Author: clp207 <clp207@psu.edu>
Authored: Sun May 7 20:39:49 2017 -0400
Committer: clp207 <clp207@psu.edu>
Committed: Sun May 7 20:39:49 2017 -0400

----------------------------------------------------------------------
 src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/10120f8d/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java b/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
index 9b4f4e0..85c3afd 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/PermDAO.java
@@ -1903,7 +1903,7 @@ class PermDAO extends LdapDataProvider
                     filterbuf.append( "(" );
                     filterbuf.append( ROLES );
                     filterbuf.append( "=" );
-                    filterbuf.append( uRole );
+                    filterbuf.append( encodeSafeText( uRole, GlobalIds.ROLE_LEN ) );
                     filterbuf.append( ")" );
                 }
             }


Mime
View raw message