* API - Make sure private custom fields are not accidentally included in notification due to being cached

This commit is contained in:
nathangray 2017-12-21 11:26:51 -07:00
parent 1df9b656fe
commit 001821175b

View File

@ -254,6 +254,10 @@ abstract class Tracking
{
if (in_array($field['type'], Customfields::$non_printable_fields)) continue;
// Sometimes cached customfields let private fields the user can access
// leak through. Make sure we don't expose them.
if ($field['private']) continue;
if (!$header_done)
{
$details['custom'] = array(