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