From ab84872203138047b661858ad15234648a323e16 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 13 Dec 2019 14:19:23 +0100 Subject: #915 Fix EliminarImagenCache command on the WebConsole Carmelo reports that EliminarImagenCache (Delete image from cache) command does not work. The image remains in place after the execution of the command. This command is actually a wrapper of the command EjecutarScript (POST /shell) with a different ID. Since gestor_Comandos.php did not expect a different ID, EliminarImagenCache did not work. This commit changes the behaviour of gestor_Comandos.php to handle the EliminarImagenCache ID and treat it as EjecutarScript. --- admin/WebConsole/comandos/gestores/gestor_Comandos.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index b0780f1f..d7704509 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -29,6 +29,7 @@ define('OG_CMD_ID_SOFTWARE', 7); define("OG_CMD_ID_SCRIPT", 8); define('OG_CMD_ID_SESSION', 9); define('OG_CMD_ID_SETUP', 10); +define('OG_CMD_ID_DELETE_CACHED_IMAGE', 11); define('OG_CMD_ID_CREATE_BASIC_IMAGE', 12); define('OG_CMD_ID_RESTORE_BASIC_IMAGE', 13); define('OG_CMD_ID_CREATE_INCREMENTAL_IMAGE', 14); @@ -78,6 +79,7 @@ function run_command($idcomando, $cadenaip, $cadenamac, $atributos) { software($cadenaip, $atributos); break; case OG_CMD_ID_SCRIPT: + case OG_CMD_ID_DELETE_CACHED_IMAGE: shell(3, $cadenaip, $atributos); break; } -- cgit v1.2.3-18-g5258