Browse Source

update _getdeployconf to allow double quotes in config file

when loading values from the config file that had a double quote (") an
error was produced on the eval statement resulting in failure to load
the variable.  Fixed with a sed to escape double quotes in the value
prior to performing the eval
pull/4509/head
dharp 2 years ago
parent
commit
a46670618b
  1. 1
      acme.sh

1
acme.sh

@ -2398,6 +2398,7 @@ _getdeployconf() {
return 0 # do nothing return 0 # do nothing
fi fi
_saved="$(_readdomainconf "SAVED_$_rac_key")" _saved="$(_readdomainconf "SAVED_$_rac_key")"
_saved=$(echo "$_saved" | sed 's/"/\\"/g')
eval $_rac_key="\"$_saved\"" eval $_rac_key="\"$_saved\""
export $_rac_key export $_rac_key
} }

Loading…
Cancel
Save