Skip to content

Commit 72942a1

Browse files
committed
Guard against null or missing keys.
Signed-off-by: Lorenzo Moscati <[email protected]>
1 parent 7258e46 commit 72942a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/src/Controller/DockerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function StartContainer(Request $request, Response $response, array $args
171171
$uri = $request->getUri();
172172
$host = $uri->getHost();
173173
$port = $uri->getPort();
174-
$path = $request->getParsedBody()['base_path'];
174+
$path = $request->getParsedBody()['base_path'] ?? '';
175175
if ($port === 8000) {
176176
error_log('The AIO_URL-port was discovered to be 8000 which is not expected. It is now set to 443.');
177177
$port = 443;

0 commit comments

Comments
 (0)