mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
v-list-mail-account-autoreply: JSON export function fix for quotes and backslash
This commit is contained in:
parent
f8be208fa3
commit
a8d857f6d5
@ -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…
x
Reference in New Issue
Block a user