You are here

function _botcha_filter_form_values_log in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 6.2 botcha.inc \_botcha_filter_form_values_log()
  2. 6.3 botcha.module \_botcha_filter_form_values_log()

Filter out sensitive form data from values for logging

3 calls to _botcha_filter_form_values_log()
botcha_form_alter_botcha in ./botcha.botcha.inc
Main BOTCHA worker - process the form and apply BOTCHA protection
_botcha_filter_form_log in ./botcha.botcha.inc
Filter out sensitive form data for logging Recursive.
_botcha_form_validate in ./botcha.botcha.inc
Custom form validation.

File

./botcha.botcha.inc, line 505
Implementation of botcha form logic.

Code

function _botcha_filter_form_values_log($values) {
  if (is_array($values) && isset($values['pass']) && is_string($values['pass'])) {
    $values['pass'] = '********';
  }
  return $values;
}