]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
merge https://github.com/acmesh-official/acme.sh/pull/4108
authorneilpang <github@neilpang.com>
Sun, 29 May 2022 07:03:09 +0000 (15:03 +0800)
committerneilpang <github@neilpang.com>
Sun, 29 May 2022 07:03:09 +0000 (15:03 +0800)
merge https://github.com/acmesh-official/acme.sh/pull/4108

dnsapi/dns_selectel.sh

index bfe501fee1561bcb9095577806888a6dc8557f0d..1b09882dbad1e29553062b11b9c558224df1658d 100644 (file)
@@ -76,7 +76,7 @@ dns_selectel_rm() {
     return 1
   fi
 
-  _record_seg="$(echo "$response" | _egrep_o "\"content\" *: *\"$txtvalue\"[^}]*}")"
+  _record_seg="$(echo "$response" | _egrep_o "[^{]*\"content\" *: *\"$txtvalue\"[^}]*}")"
   _debug2 "_record_seg" "$_record_seg"
   if [ -z "$_record_seg" ]; then
     _err "can not find _record_seg"
@@ -120,7 +120,7 @@ _get_root() {
       return 1
     fi
 
-    if _contains "$response" "\"name\": *\"$h\","; then
+    if _contains "$response" "\"name\" *: *\"$h\","; then
       _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
       _domain=$h
       _debug "Getting domain id for $h"