Fix for quote characters in user logs returned as JSON

Fix for https://bugs.vestacp.com/issues/413
This commit is contained in:
dpeca 2016-11-02 21:42:44 +01:00 committed by GitHub
commit ae5aa156f7

View file

@ -24,6 +24,7 @@ json_list() {
echo "{" echo "{"
for str in $logs; do for str in $logs; do
eval $str eval $str
CMD=${CMD//\"/\\\"}
echo -n ' "'$ID'": { echo -n ' "'$ID'": {
"CMD": "'$CMD'", "CMD": "'$CMD'",
"UNDO": "'$UNDO'", "UNDO": "'$UNDO'",