Browse Source

Fix for SC2039/SC2086

pull/2455/head
Rolph Haspers 5 years ago
parent
commit
58642286c9
  1. 4
      dnsapi/dns_leaseweb.sh

4
dnsapi/dns_leaseweb.sh

@ -88,7 +88,7 @@ _get_root() {
i=$(_math "$i" - 1) i=$(_math "$i" - 1)
while true; do while true; do
h=$(printf "%s" "$rdomain" | cut -d . -f $i-100)
h=$(printf "%s" "$rdomain" | cut -d . -f "$i"-100)
_debug h "$h" _debug h "$h"
if [ -z "$h" ]; then if [ -z "$h" ]; then
return 1 #not valid domain return 1 #not valid domain
@ -102,7 +102,7 @@ _get_root() {
fi fi
fi fi
i=$(_math "$i" - 1) i=$(_math "$i" - 1)
if (( i < 2 )); then
if $(( i < 2 )); then
return 1 #not found, no need to check _acme-challenge.sub.domain in leaseweb api. return 1 #not found, no need to check _acme-challenge.sub.domain in leaseweb api.
fi fi
done done

Loading…
Cancel
Save