Function __global->check_posted_field

Definitions

sources/input_filter.php

  • Check a posted field isn't part of a malicious attack (we do more checks for post fields than get fields).- CSRF attacks via referer checking- advanced ban checking
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$name string No No required parameter N/A N/A The name of the parameter
$val string No No required parameter N/A N/A The value retrieved
$filters integer No No required parameter N/A N/A A bitmask of INPUT_FILTER_* filters

Preview

Code (PHP)

/**
 * Check a posted field isn't part of a malicious attack (we do more checks for post fields than get fields).- CSRF attacks via referer checking- advanced ban checking
 *
 * @param  string $name The name of the parameter
 * @param  string $val The value retrieved
 * @param  integer $filters A bitmask of INPUT_FILTER_* filters
 */

function check_posted_field(string $name, string $val, int $filters)