• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/tests/environment.php
  • Класс: CSecurityEnvironmentTest
  • Вызов: CSecurityEnvironmentTest::checkUploadNegotiationEnabled
protected function checkUploadNegotiationEnabled()
{
	$testingText = "test";
	$testFileContent = "
Content-language: ru
Content-type: text/html;
Body:----------ru--
".$testingText."
----------ru--

";

	if(self::isScriptExecutable("test.var.jpg", $testFileContent, $testingText))
	{
		$this->addUnformattedDetailError("SECURITY_SITE_CHECKER_UPLOAD_NEGOTIATION", CSecurityCriticalLevel::MIDDLE);
		return self::STATUS_FAILED;
	}

	return self::STATUS_PASSED;
}