X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FRule.php;h=61a467451fd26e106c6fd8d59e6b5b001f0b2320;hb=165bc6f5cf05fbe0a06eaac087227e0557c266f0;hp=e053e9e81c5fabeac2caf98e0933f75bfb519e72;hpb=2e62b9a784e1f9494799eae8afda7cd4df9910b4;p=civicrm-core.git diff --git a/CRM/Utils/Rule.php b/CRM/Utils/Rule.php index e053e9e81c..61a467451f 100644 --- a/CRM/Utils/Rule.php +++ b/CRM/Utils/Rule.php @@ -1,7 +1,7 @@ $item) { + if (is_array($item)) { + if (!self::xssString($key) || !self::arrayValue($item)) { + return FALSE; + } + } + if (!self::xssString($key) || !self::xssString($item)) { + return FALSE; + } + } + return TRUE; + } + }