You are here

public function RavenSanitizeCookieProcessor::sanitizeHttp in Raven: Sentry Integration 7.3

Sanitize cookies.

1 call to RavenSanitizeCookieProcessor::sanitizeHttp()
RavenSanitizeCookieProcessor::process in ./RavenSanitizeCookieProcessor.php

File

./RavenSanitizeCookieProcessor.php, line 25
Extend SanitizeDataProcessor to sanitize cookies.

Class

RavenSanitizeCookieProcessor
Extend SanitizeDataProcessor to sanitize cookies.

Code

public function sanitizeHttp(&$data) {
  $http =& $data['request'];
  if (!empty($http['cookies']) && is_array($http['cookies'])) {
    $cookies =& $http['cookies'];
    array_walk_recursive($cookies, array(
      $this,
      'sanitize',
    ));
  }
}