Skip to content

Commit ca59a1d

Browse files
baconjanderAlejandro Maura Bonet
andauthored
OID attributes get a wrong name when normalized due to first dot not being removed (#446)
Co-authored-by: Alejandro Maura Bonet <alejandro.maura-bonet@t-systems.com>
1 parent 25a3eb8 commit ca59a1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/xml/security/utils/RFC2253Parser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ static String normalizeAT(String str) {
166166

167167
String at = str.toUpperCase().trim();
168168

169-
if (at.startsWith("OID")) {
170-
at = at.substring(3);
169+
if (at.startsWith("OID.")) {
170+
at = at.substring(4);
171171
}
172172

173173
return at;

0 commit comments

Comments
 (0)