Skip to content

Commit

Permalink
Merge pull request #28 from flownative/task/sanitize-settings
Browse files Browse the repository at this point in the history
Sanitize settings properly
  • Loading branch information
kdambekalns authored Nov 4, 2024
2 parents 1be9a48 + 9f4fbe5 commit f655f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/SentryClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class SentryClient

public function injectSettings(array $settings): void
{
$this->dsn = $settings['dsn'] ?? '';
$this->environment = $settings['environment'] ?? '';
$this->release = $settings['release'] ?? '';
$this->dsn = $settings['dsn'] ?: '';
$this->environment = $settings['environment'] ?: '';
$this->release = $settings['release'] ?: '';
$this->sampleRate = (float)($settings['sampleRate'] ?? 1);
$this->excludeExceptionTypes = $settings['capture']['excludeExceptionTypes'] ?? [];
}
Expand Down

0 comments on commit f655f0f

Please sign in to comment.