Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2026-08-19 v6.9.1
- Исправлены замечания по безопасности модуля. Уточнены защитные проверки в публичных сценариях после повторной проверки приложения на Маркетплейсе.
- Добавлено подключение класса Utils в RetailCrmEvent.php.

## 2026-07-27 v6.9.0
- Добавлена поддержка мультисайтовости для типа контрагента
- Исправлена установка и обновление модуля
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/classes/general/events/RetailCrmEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Intaro\RetailCrm\Component\ConfigProvider;
use Intaro\RetailCrm\Model\Api\Response\OrdersCreateResponse;
use Intaro\RetailCrm\Model\Api\Response\OrdersEditResponse;
use Intaro\RetailCrm\Service\Utils;

/**
* Class RetailCrmEvent
Expand Down
2 changes: 1 addition & 1 deletion intaro.retailcrm/description.ru
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Добавлена поддержка мультисайтовости для типа контрагента
- Исправлены защитные проверки в публичных сценариях. Добавлено подключение класса Utils в RetailCrmEvent.php.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@
}

// verify phone code
if ($_SERVER["REQUEST_METHOD"] == "POST" && $_REQUEST["code_submit_button"] <> '' && !$USER->IsAuthorized())
if (
$_SERVER["REQUEST_METHOD"] == "POST"
&& check_bitrix_sessid()
&& $_REQUEST["code_submit_button"] <> ''
&& !$USER->IsAuthorized()
)
{
if($_REQUEST["SIGNED_DATA"] <> '')
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1378,9 +1378,20 @@ protected function confirmSmsCodeAction()
{
global $USER;

if (!$this->request->isPost() || !$this->checkSession)
{
$this->showAjaxAnswer([
'error' => Loc::getMessage('SESSID_ERROR'),
]);

return;
}

if ($USER->IsAuthorized())
{
$this->refreshOrderAjaxAction();

return;
}

$request = $this->request->get('order') ?: [];
Expand Down Expand Up @@ -4620,6 +4631,15 @@ protected function saveOrderAjaxAction()
*/
protected function enterCouponAction()
{
if (!$this->request->isPost() || !$this->checkSession)
{
$this->showAjaxAnswer([
'error' => Loc::getMessage('SESSID_ERROR'),
]);

return;
}

$coupon = trim($this->request->get('coupon'));

if (!empty($coupon))
Expand All @@ -4640,6 +4660,15 @@ protected function enterCouponAction()
*/
protected function removeCouponAction()
{
if (!$this->request->isPost() || !$this->checkSession)
{
$this->showAjaxAnswer([
'error' => Loc::getMessage('SESSID_ERROR'),
]);

return;
}

$coupon = htmlspecialchars_decode(trim($this->request->get('coupon')));

if (!empty($coupon))
Expand Down Expand Up @@ -6252,4 +6281,4 @@ public function executeComponent()
die();
}
}
}
}
4 changes: 2 additions & 2 deletions intaro.retailcrm/install/version.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$arModuleVersion = [
'VERSION' => '6.9.0',
'VERSION_DATE' => '2026-07-27 12:00:00'
'VERSION' => '6.9.1',
'VERSION_DATE' => '2026-08-19 12:00:00'
];
2 changes: 1 addition & 1 deletion intaro.retailcrm/lib/component/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class Constants
{
public const MODULE_VERSION = '6.9.0';
public const MODULE_VERSION = '6.9.1';
public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null';
public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-';
public const CRM_USERS_MAP = 'crm_users_map';
Expand Down
Loading