- Модуль: security
- Путь к файлу: ~/bitrix/modules/security/classes/general/tests/php_configuration.php
- Класс: CSecurityPhpConfigurationTest
- Вызов: CSecurityPhpConfigurationTest::checkRequestOrder
protected function checkRequestOrder()
{
$order = ini_get('request_order');
if (!$order || !in_array($order, array('GP', 'PG'), true))
{
$this->addUnformattedDetailError(
'SECURITY_SITE_CHECKER_PHP_REQUEST_ORDER',
CSecurityCriticalLevel::MIDDLE,
getMessage('SECURITY_SITE_CHECKER_PHP_REQUEST_ORDER_ADDITIONAL', array(
'#CURRENT#' => $order,
'#RECOMMENDED#' => 'GP'
))
);
return self::STATUS_FAILED;
}
return self::STATUS_PASSED;
}