From 815d82f294952f7ea9ad7fffd59b501df7a6184c Mon Sep 17 00:00:00 2001 From: Nicolas COMPAIN Date: Sun, 14 Jan 2024 14:16:18 +0100 Subject: [PATCH] Update version number and add JSON string escape --- composer.json | 4 ++-- src/MultiDownloaderClient.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f45ba9c..fcec019 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "nwb/multi-downloader-client", "description": "Client for multi-downloader-service", "type": "library", - "version": "0.0.6", + "version": "0.0.7", "autoload": { "psr-4": { "Nwb\\MultiDownloaderClient\\": "src/" @@ -24,4 +24,4 @@ "scripts": { "test": "phpunit" } -} +} \ No newline at end of file diff --git a/src/MultiDownloaderClient.php b/src/MultiDownloaderClient.php index 9bc677d..a26ed8c 100644 --- a/src/MultiDownloaderClient.php +++ b/src/MultiDownloaderClient.php @@ -125,6 +125,7 @@ class MultiDownloaderClient */ public function htmlForm(): string { + $json_string = addslashes(json_encode($this->buildRequest())); ob_start(); include __DIR__ . '/htmlForm.php'; return ob_get_clean();