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()), ] );