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",
"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"
}
}
}

View File

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