• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/tests/taint_checking.php
  • Класс: CSecurityTaintCheckingTest
  • Вызов: CSecurityTaintCheckingTest::formatErrors
static function formatErrors($pErrors)
{
	$result = array();
	if(isset($pErrors["PROBLEM_COUNT"]) && intval($pErrors["PROBLEM_COUNT"]) > 0)
	{
		$problemCount = $pErrors["PROBLEM_COUNT"];
	}
	else
	{
		$problemCount = 0;
	}
	$result["title"] = GetMessage("SECURITY_SITE_CHECKER_TAINT_TITLE", array("#COUNT#" => $problemCount));
	$result["critical"] = CSecurityCriticalLevel::HIGHT;
	$result["recommendation"] = GetMessage("SECURITY_SITE_CHECKER_TAINT_RECOMMENDATION");
	$result["detail"] = self::formatDetail($pErrors["DETAIL"]);
	return array($result);
}