Skip to content

Commit 5e5e1c0

Browse files
Merge pull request #365 from daniellienert/bugfix/correctly-convert-dimension-json
BUGFIX: Correctly merge dimension json
2 parents f166576 + ecc93db commit 5e5e1c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Command/SearchCommandController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function fulltextCommand(string $searchWord, string $path = '/', ?string
104104
*/
105105
public function viewNodeCommand(string $identifier, ?string $dimensions = null, string $field = ''): void
106106
{
107-
if ($dimensions !== null && is_array(json_decode($dimensions)) === false) {
107+
if ($dimensions !== null && is_array(json_decode($dimensions, true, 512, JSON_THROW_ON_ERROR)) === false) {
108108
$this->outputLine('<error>Error: </error>The Dimensions must be given as a JSON array like \'{"language":["de"]}\'');
109109
$this->sendAndExit(1);
110110
}

0 commit comments

Comments
 (0)