On second thought... use the slash if it comes after a :
[java-idp.git] / 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 {