summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole')
-rw-r--r--admin/WebConsole/asistentes/jscripts/EjecutarScripts.js4
-rw-r--r--admin/WebConsole/comandos/jscripts/EjecutarScripts.js4
-rw-r--r--admin/WebConsole/includes/restfunctions.php3
3 files changed, 3 insertions, 8 deletions
diff --git a/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js b/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js
index 5452cf97..9b3d3b7c 100644
--- a/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js
+++ b/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js
@@ -12,9 +12,7 @@
// ***********************************************************************************************************
function confirmar(){
if (comprobar_datos()){
- var RC='@';
- document.fdatosejecucion.atributos.value="scp="+escape(document.fdatos.codigo.value)+RC;
-
+ document.fdatosejecucion.atributos.value="scp="+escape(document.fdatos.codigo.value);
// Pedir confirmación si clonación masiva por Unicast.
if (document.fdatosejecucion.ambito.value!=16 && document.fdatos.idmetodo !== undefined &&
(document.fdatos.idmetodo.value=="UNICAST" || document.fdatos.idmetodo.value=="UNICAST-DIRECT")) {
diff --git a/admin/WebConsole/comandos/jscripts/EjecutarScripts.js b/admin/WebConsole/comandos/jscripts/EjecutarScripts.js
index e97e6f2a..b03ee991 100644
--- a/admin/WebConsole/comandos/jscripts/EjecutarScripts.js
+++ b/admin/WebConsole/comandos/jscripts/EjecutarScripts.js
@@ -9,9 +9,7 @@
// ***********************************************************************************************************
function confirmar(){
if (comprobar_datos()){
- var RC='@';
- document.fdatos.codigo.value+="\n";
- document.fdatosejecucion.atributos.value="scp="+escape(document.fdatos.codigo.value+"\n")+RC;
+ document.fdatosejecucion.atributos.value="scp="+escape(document.fdatos.codigo.value);
filtrado();
// Incluimos el modo de ejecución en fdatosejecucion.
var modoejecucion=document.createElement('input');
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index ec4a323c..4067f697 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -144,9 +144,8 @@ function shell($case, $string_ips, $command) {
break;
case 3:
$decoded_cmds = rawurldecode(substr($command, 4));
- $command = substr($decoded_cmds, 0, -2);
$data = array(OG_REST_PARAM_CLIENTS => $ips,
- OG_REST_PARAM_RUN => $command,
+ OG_REST_PARAM_RUN => $decoded_cmds,
OG_REST_PARAM_ECHO => false);
$command = OG_REST_CMD_RUN;
break;