diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-08-25 13:10:23 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-08-25 16:03:14 +0200 |
commit | ce83ea497b648f3195a6a194e496dc9ba0292d7a (patch) | |
tree | 763f35f8c20d5cf84587f688ee5f22e3977b48a4 /admin/WebConsole/principal | |
parent | b1ef1351553bdc43077d001a759b62b720d11ae2 (diff) |
#1001 Remove trailing \r and \n in some scripts
We find that scripts sent by "Assistants"/"Asistentes" are losing the
last character and scripts send by "Run Script"/"Ejecutar Script" have a
trailing line feed (\n).
This is happening because shell() function, which calls "/shell/run" of
ogServer REST API, expects scripts send by "Asistentes" and "Run Script"
to have two trailing characters and removes them. But "Assistants" only
put one trailing char (\r) and "Run Script" put three trailing chars
(\n\n\r).
To avoid problems when running scripts without the last char or with
trailing line feed this patch updates WebConsole to:
1) "Assistants" no longer put one trailing character at the end
of the script
2) "Run Script" no longer puts three trailing characters at the
end of the script
3) shell() expects no trailing chars in scripts sent by
"Assistants" and "Run Script".
Diffstat (limited to 'admin/WebConsole/principal')
0 files changed, 0 insertions, 0 deletions