Fixed incorrect unit test and corresponding bug in the DN extraction code.
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / common / ShibPOSTProfile.java
index 9420087..2c72a89 100755 (executable)
@@ -74,7 +74,7 @@ import edu.internet2.middleware.shibboleth.hs.HSRelyingParty;
  */
 public class ShibPOSTProfile {
 
-       private static Pattern  regex           = Pattern.compile(".*CN=([^,/]+).*");
+       private static Pattern  regex           = Pattern.compile(".*?CN=([^,/]+).*");
 
        /** XML Signature algorithm to apply */
        protected String                algorithm       = XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1;