Permalink
Browse files

v-list-mail-account-autoreply: JSON export function fix for quotes an…

…d backslash
  • Loading branch information...
dpeca committed Dec 7, 2017
1 parent f8be208 commit a8d857f6d5e3424b73958fc7d7e35bf90ae87a15
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/v-list-mail-account-autoreply
@@ -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\": {"

0 comments on commit a8d857f

Please sign in to comment.