Skip to content

Commit 4bb8a3f

Browse files
authored
Fix for quote characters in user logs returned as JSON
Fix for https://bugs.vestacp.com/issues/413
1 parent 9bf86ea commit 4bb8a3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-list-user-log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ json_list() {
2424
echo "{"
2525
for str in $logs; do
2626
eval $str
27+
CMD=${CMD//\"/\\\"}
2728
echo -n ' "'$ID'": {
2829
"CMD": "'$CMD'",
2930
"UNDO": "'$UNDO'",

0 commit comments

Comments
 (0)