From 2aab7790055d83396c8fc5bf76ac87839cab49ac Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 13 Jul 2022 17:16:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=80=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D1=82=D0=B0=D0=BD=20=D0=BC=D0=B5=D1=85=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=20=D0=BE=D1=87=D0=B8=D1=81=D1=82=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BA=D1=8D=D1=88=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/ExternalServices/Request.class.php | 7 +++++++ core/lib/Core/Models/MQ.class.php | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 core/lib/Core/ExternalServices/Request.class.php diff --git a/core/lib/Core/ExternalServices/Request.class.php b/core/lib/Core/ExternalServices/Request.class.php new file mode 100644 index 0000000..46e08a7 --- /dev/null +++ b/core/lib/Core/ExternalServices/Request.class.php @@ -0,0 +1,7 @@ + $endTime, 'status' => self::STATUS_OK, 'date_updated' => date(self::DATETIME_FORMAT), - 'response' => $this->convertToJson($result), + 'response' => addslashes($this->convertToJson($result)), ] ); $response->setStatus(self::STATUS_OK)->setExecutionTime($endTime)->setResponse($this->convertToJson($result)); @@ -670,7 +670,7 @@ 'execution_time' => $endTime, 'date_updated' => date(self::DATETIME_FORMAT), 'status' => self::STATUS_ERROR, - 'response' => $t->getMessage(), + 'response' => addslashes($t->getMessage()), ] );