X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FRule.php;h=61a467451fd26e106c6fd8d59e6b5b001f0b2320;hb=f118320a31b52481a17dae33b46b1826fa71d0de;hp=ada29634f103681acd754c6a7437286c99804876;hpb=b94eea5170f9b25e817067941198129b5de3224c;p=civicrm-core.git diff --git a/CRM/Utils/Rule.php b/CRM/Utils/Rule.php index ada29634f1..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; + } + }