Browse Source

Fixed a bug where the zone_id was corrupted for domains containing the string 'id' dns_dynv6.sh

This will now search for `"id:"` instead of `id` and therefore will only find the id field and not any other field containing the sub-string 'id'
pull/5218/head
IIIPr0t0typ3III 3 months ago
committed by GitHub
parent
commit
5789e80d74
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      dnsapi/dns_dynv6.sh

2
dnsapi/dns_dynv6.sh

@ -206,7 +206,7 @@ _get_zone_id() {
return 1 return 1
fi fi
zone_id="$(echo "$response" | tr '}' '\n' | grep "$selected" | tr ',' '\n' | grep id | tr -d '"')"
zone_id="$(echo "$response" | tr '}' '\n' | grep "$selected" | tr ',' '\n' | grep '"id":' | tr -d '"')"
_zone_id="${zone_id#id:}" _zone_id="${zone_id#id:}"
_debug "zone id: $_zone_id" _debug "zone id: $_zone_id"
} }

Loading…
Cancel
Save