Update version number and add JSON string escape
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolas COMPAIN 2024-01-14 14:16:18 +01:00
parent eec4975a0f
commit 815d82f294
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "nwb/multi-downloader-client", "name": "nwb/multi-downloader-client",
"description": "Client for multi-downloader-service", "description": "Client for multi-downloader-service",
"type": "library", "type": "library",
"version": "0.0.6", "version": "0.0.7",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Nwb\\MultiDownloaderClient\\": "src/" "Nwb\\MultiDownloaderClient\\": "src/"
@ -24,4 +24,4 @@
"scripts": { "scripts": {
"test": "phpunit" "test": "phpunit"
} }
} }

View File

@ -125,6 +125,7 @@ class MultiDownloaderClient
*/ */
public function htmlForm(): string public function htmlForm(): string
{ {
$json_string = addslashes(json_encode($this->buildRequest()));
ob_start(); ob_start();
include __DIR__ . '/htmlForm.php'; include __DIR__ . '/htmlForm.php';
return ob_get_clean(); return ob_get_clean();