From 0cea41e48f8d07fa3668de04f025c9a8de68c97a Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 13 Feb 2019 10:16:49 +0300 Subject: [PATCH] v2.2.11 --- CHANGELOG.md | 3 +++ VERSION | 2 +- retailcrm/retailcrm.php | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8000f..bd48997 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v2.2.11 +* Добавлена валидация доменов pro и es в адресах retailCRM + ## v2.2.10 * исправление передачи цены доставки в CRM diff --git a/VERSION b/VERSION index 565a0d4..4c22129 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.10 \ No newline at end of file +2.2.11 \ No newline at end of file diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index 6250729..2288d29 100644 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -3,7 +3,7 @@ * @author Retail Driver LCC * @copyright RetailCRM * @license GPL - * @version 2.2.10 + * @version 2.2.11 * @link https://retailcrm.ru * */ @@ -38,7 +38,7 @@ class RetailCRM extends Module { $this->name = 'retailcrm'; $this->tab = 'export'; - $this->version = '2.2.10'; + $this->version = '2.2.11'; $this->author = 'Retail Driver LCC'; $this->displayName = $this->l('RetailCRM'); $this->description = $this->l('Integration module for RetailCRM'); @@ -835,7 +835,7 @@ class RetailCRM extends Module private function validateCrmAddress($address) { - if (preg_match("/https:\/\/(.*).retailcrm.ru/", $address) === 1) { + if (preg_match("/https:\/\/(.*).retailcrm.(pro|ru|es)/", $address) === 1) { return true; }