• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/post_filter.php
  • Класс: CSecurityXSSDetect
  • Вызов: CSecurityXSSDetect::extractVariablesFromArray
protected function extractVariablesFromArray($name, $array)
{
	if(!is_array($array))
		return;

	foreach($array as $key => $value)
	{
		$variableName = sprintf('%s[%s]', $name, $key);
		if (is_array($value))
			$this->extractVariablesFromArray($variableName, $value);
		else
			$this->addVariable($variableName, $value);
	}
}