• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/filter/server.php
  • Класс: BitrixSecurityFilterServer
  • Вызов: Server::filter
public function filter(array $values, $isReturnChangedOnly = true)
{
	$this->onFilterStarted();

	foreach ($values as $key => &$val)
	{
		if (
			substr($key, 0, 5) === 'HTTP_'
			|| in_array($key, $this->interestingKeys, true)
		)
		{
			$val = $this->filterVar('server', $val, '$_SERVER["'.$key.'"]');
		}

	}
	unset($val);

	$this->onFilterFinished();

	if (!$isReturnChangedOnly || isset($this->changedContext['server']))
		return $values;
	else
		return null;
}