diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-06-26 14:03:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 14:03:46 +0300 |
commit | 1d5bbb55a4ffdfa9c40ba68a8680a7208e26adb4 (patch) | |
tree | 7ef7752fd18e1906ec9bbce3429bed2fa973426c /plugins/Actions/ArchivingHelper.php | |
parent | 40a8c0bdc4272755bf7e595d5029665a68c84c60 (diff) |
Disallow event tracking with empty/whitespace categories (#11819)
* trim event values before checking if they are empty
* Prevent possible archiving failures for already tracked empty event categories
* Throw exception when tracking events with empty category or action
* move trim method
* Log console error when tracking events without category or action
* rebuilt piwik.js
Diffstat (limited to 'plugins/Actions/ArchivingHelper.php')
-rw-r--r-- | plugins/Actions/ArchivingHelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Actions/ArchivingHelper.php b/plugins/Actions/ArchivingHelper.php index 192a3089ba..bf5415f130 100644 --- a/plugins/Actions/ArchivingHelper.php +++ b/plugins/Actions/ArchivingHelper.php @@ -53,7 +53,7 @@ class ArchivingHelper unset($row[PiwikMetrics::INDEX_SITE_SEARCH_HAS_NO_RESULT]); } - if (in_array($row['type'], array(Action::TYPE_CONTENT, Action::TYPE_EVENT))) { + if (in_array($row['type'], array(Action::TYPE_CONTENT, Action::TYPE_EVENT, Action::TYPE_EVENT_NAME))) { continue; } |