Browse Source

fix rm method to urlencode the existing txt records.
fix https://github.com/Neilpang/acme.sh/issues/2052

neilpang 6 years ago
parent
commit
43877d2647
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dnsapi/dns_namecheap.sh

+ 1 - 0
dnsapi/dns_namecheap.sh

@@ -283,6 +283,7 @@ _del_namecheap_TXT() {
         _debug "TXT entry found"
         found=1
       else
+        _hostaddress="$(printf "%s" "$_hostaddress" | _url_encode)"
         _namecheap_add_host "$_hostname" "$_hosttype" "$_hostaddress" "$_hostmxpref" "$_hostttl"
       fi
     fi