mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
v-list-mail-account-autoreply: JSON export function fix for quotes and backslash
This commit is contained in:
parent
f8be208fa3
commit
a8d857f6d5
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ source $VESTA/func/main.sh
|
|||
|
||||
# JSON list function
|
||||
json_list() {
|
||||
TO_ESCAPE='\\';
|
||||
msg=$(echo "$msg" |sed -e "s|${TO_ESCAPE}|${TO_ESCAPE}${TO_ESCAPE}|g" -e 's/"/\\"/g' -e "s/%quote%/'/g")
|
||||
i='1' # iterator
|
||||
echo '{'
|
||||
echo -e "\t\"$account\": {"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue