From 9a22210a0b97dbe1e11f47cc21f2eb16e9338160 Mon Sep 17 00:00:00 2001 From: baibaratsky Date: Thu, 30 Jul 2015 15:40:13 +0300 Subject: [PATCH] scrubFields config param added --- RollbarComponent.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RollbarComponent.php b/RollbarComponent.php index dd6362a..bf5f878 100644 --- a/RollbarComponent.php +++ b/RollbarComponent.php @@ -12,6 +12,7 @@ class RollbarComponent extends CApplicationComponent public $includedErrno; public $baseApiUrl; public $rootAlias = 'application'; + public $scrubFields = ['passwd', 'password', 'secret', 'auth_token', 'YII_CSRF_TOKEN']; public function init() { @@ -27,6 +28,7 @@ public function init() 'included_errno' => $this->includedErrno, 'base_api_url' => $this->baseApiUrl, 'root' => !empty($this->rootAlias) ? Yii::getPathOfAlias($this->rootAlias) : '', + 'scrub_fields' => $this->scrubFields, ), false, false);