• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/post_filter.php
  • Класс: CSecurityXSSDetect
  • Вызов: CSecurityXSSDetect::isDangerBody
protected function isDangerBody($body)
{
	$search = $this->findInArray($body, $this->quotedSearches);
	if ($search !== null)
	{
		return $this->quotedSearches[$search];
	}
	else if (!empty($this->searches))
	{
		$bodyWithoutQuotes = $this->removeQuotedStrings($body, false);
		$search = $this->findInArray($bodyWithoutQuotes, $this->searches);
		if ($search !== null)
		{
			return $this->searches[$search];
		}
	}

	return false;
}