Skip to content

Commit a8d857f

Browse files
authored
v-list-mail-account-autoreply: JSON export function fix for quotes and backslash
1 parent f8be208 commit a8d857f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/v-list-mail-account-autoreply

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ source $VESTA/func/main.sh
2020

2121
# JSON list function
2222
json_list() {
23+
TO_ESCAPE='\\';
24+
msg=$(echo "$msg" |sed -e "s|${TO_ESCAPE}|${TO_ESCAPE}${TO_ESCAPE}|g" -e 's/"/\\"/g' -e "s/%quote%/'/g")
2325
i='1' # iterator
2426
echo '{'
2527
echo -e "\t\"$account\": {"

0 commit comments

Comments
 (0)