diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-02-11 10:51:49 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-05-19 18:15:30 +0200 |
commit | 19a9ac113d0d66dcbfd59425e00df083c16dfdc0 (patch) | |
tree | 2b3b9e02788d570d7036ffe79dd7ac087e099ce6 | |
parent | 836afa9c16e8ec54aaa351fcd6c5554b9eda663c (diff) |
#942 Fix run script encoding (web)
Run script commands should not be encoded as an URL.
-rw-r--r-- | admin/WebConsole/includes/restfunctions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php index 828a2bef..274ca708 100644 --- a/admin/WebConsole/includes/restfunctions.php +++ b/admin/WebConsole/includes/restfunctions.php @@ -117,7 +117,8 @@ function shell($case, $string_ips, $command) { switch ($case) { case 3: - $command = substr($command, 4); + $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_ECHO => false); |