From: deb.monish Date: Tue, 12 Jul 2016 05:56:02 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=894223d85526e450990a0ee078e6e0f76480fcb0;p=civicrm-core.git minor fix --- diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index ab510d164b..51f06e319f 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -348,7 +348,8 @@ SELECT f.id, f.label, f.data_type, // CRM-19006: escape characters like comma, | before building regex pattern $value = (array) $value; foreach ($value as $key => $val) { - $value[$key] = str_replace(array('|', '[', ']', ','), array('[:spearator:]', '\[', '\]', '[:comma:]'), $val); + $value[$key] = str_replace(array('[', ']', ','), array('\[', '\]', '[:comma:]'), $val); + $value[$key] = str_replace('|', '[:separator:]', $value[$key]); } $value = implode(',', $value); }