\Raven_SanitizeDataProcessor

Asterisk out passwords from password fields in frames, http, and basic extra data.

Summary

Methods
Properties
Constants
__construct()
setProcessorOptions()
sanitize()
sanitizeException()
sanitizeHttp()
sanitizeStacktrace()
process()
getFieldsRe()
setFieldsRe()
getValuesRe()
setValuesRe()
No public properties found
MASK
FIELDS_RE
VALUES_RE
STRING_MASK
No protected methods found
$fields_re
$values_re
$session_cookie_name
$client
N/A
No private methods found
No private properties found
N/A

Constants

MASK

MASK = self::STRING_MASK

FIELDS_RE

FIELDS_RE = '/(authorization|password|passwd|secret|password_confirmation|card_number|auth_pw)/i'

VALUES_RE

VALUES_RE = '/^(?:\d[ -]*?){13,16}$/'

STRING_MASK

STRING_MASK = '********'

This constant defines the mask string used to strip sensitive information.

Properties

$fields_re

$fields_re : 

Type

$values_re

$values_re : 

Type

$session_cookie_name

$session_cookie_name : 

Type

$client

$client : \Raven_Client

Type

\Raven_Client — The Raven client

Methods

__construct()

__construct(\Raven_Client  $client) 

Class constructor.

Parameters

\Raven_Client $client

The Raven client

setProcessorOptions()

setProcessorOptions(array  $options) 

Override the default processor options

Parameters

array $options

Associative array of processor options

sanitize()

sanitize(mixed  $item, string  $key) 

Replace any array values with our mask if the field name or the value matches a respective regex

Parameters

mixed $item

Associative array value

string $key

Associative array key

sanitizeException()

sanitizeException(  $data) 

Parameters

$data

sanitizeHttp()

sanitizeHttp(  $data) 

Parameters

$data

sanitizeStacktrace()

sanitizeStacktrace(  $data) 

Parameters

$data

process()

process(array  $data) 

Process and sanitize data, modifying the existing value if necessary.

Parameters

array $data

Array of log data

getFieldsRe()

getFieldsRe() : string

Returns

string

setFieldsRe()

setFieldsRe(string  $fields_re) 

Parameters

string $fields_re

getValuesRe()

getValuesRe() : string

Returns

string

setValuesRe()

setValuesRe(string  $values_re) 

Parameters

string $values_re