CCrmInstantEditorHelper::unsignComponentParams

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInstantEditorHelper
  4. unsignComponentParams
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_component_helper.php
  • Класс: \CCrmInstantEditorHelper
  • Вызов: CCrmInstantEditorHelper::unsignComponentParams
static function unsignComponentParams(string $params, string $componentName): ?array
{
	$signer = new \Bitrix\Main\Security\Sign\Signer;
	try
	{
		return (array)unserialize(
			base64_decode(
				$signer->unsign($params, 'signed_' . $componentName)
			),
			['allowed_classes' => false]
		);
	}
	catch (\Bitrix\Main\Security\Sign\BadSignatureException $e)
	{
		return null;
	}
}

Добавить комментарий