On second thought... use the slash if it comes after a :
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jun 2003 19:51:36 +0000 (19:51 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jun 2003 19:51:36 +0000 (19:51 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@619 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/SimpleAttributeDefinition.java

index 32ddcf2..a39cd41 100644 (file)
@@ -96,9 +96,10 @@ public class SimpleAttributeDefinition extends BaseAttributeDefinition implement
                        int index = getId().lastIndexOf("#");
                        if (index < 0) {
                                index = getId().lastIndexOf(":");
-                       }
-                       if (index < 0) {
-                               index = getId().lastIndexOf("/");
+                               int slashIndex = getId().lastIndexOf("/");
+                               if (slashIndex > index) {
+                                       index = slashIndex;
+                               }
                        }
                        connectorMapping = getId().substring(index + 1);
                } else {