Docker updates

This commit is contained in:
bergware
2021-08-11 15:13:11 +02:00
parent 2efc62661b
commit 334a71ed13
@@ -1,7 +1,7 @@
<?PHP
/* Copyright 2005-2020, Lime Technology
* Copyright 2014-2020, Guilherme Jardim, Eric Schultz, Jon Panozzo.
* Copyright 2012-2020, Bergware International.
/* Copyright 2005-2021, Lime Technology
* Copyright 2014-2021, Guilherme Jardim, Eric Schultz, Jon Panozzo.
* Copyright 2012-2021, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
@@ -19,8 +19,12 @@ require_once "$docroot/webGui/include/Translations.php";
require_once "$docroot/plugins/dynamix.docker.manager/include/DockerClient.php";
function safe($text) {
return preg_replace('/[^A-Za-z0-9\.\-_: ]+/','',html_entity_decode($text));
}
$DockerClient = new DockerClient();
$_REQUEST = array_merge($_GET, $_POST);
$_REQUEST = array_merge(array_map('safe',$_GET), $_POST);
$action = $_REQUEST['action'] ?? '';
$container = $_REQUEST['container'] ?? '';
$name = $_REQUEST['name'] ?? '';