Fixed a problem with matching function boolean logic.
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / aa / arp / provider / RegexMatchFunction.java
index 8de03d1..b586a6c 100755 (executable)
@@ -72,7 +72,7 @@ public class RegexMatchFunction implements MatchFunction {
        public boolean match(Object arpComponent, Object requestComponent)
                throws MatchingException
        {
-               if (!(arpComponent instanceof String) && !(requestComponent instanceof String || requestComponent instanceof URL)) {
+               if (!(arpComponent instanceof String) || !(requestComponent instanceof String || requestComponent instanceof URL)) {
                        log.error("Invalid use of ARP matching function (RegexMatchFunction).");
                        throw new MatchingException(
                                "Invalid use of ARP matching function (RegexMatchFunction).");