You are here

function _botcha_filter_form_values_log in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 6 botcha.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()
BotchaRecipebookAbstract::apply in controller/botcha_recipebook.controller.inc
BotchaRecipebookAbstract::handle in controller/botcha_recipebook.controller.inc
Handle form depending on the result of spam check.
_botcha_filter_form_log in ./botcha.inc
Filter out sensitive form data for logging Recursive.

File

./botcha.inc, line 88
General BOTCHA functionality and helper functions.

Code

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