mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
Docker updates
This commit is contained in:
@@ -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'] ?? '';
|
||||
|
||||
Reference in New Issue
Block a user