From a8c86e86fcda6aee54322296cc60c5e37a977d95 Mon Sep 17 00:00:00 2001 From: CZECHIA-COM Date: Mon, 23 Feb 2026 16:27:06 +0100 Subject: [PATCH] Update dns_czechia.sh Fix _lower_case usage (use as stdin filter) --- dnsapi/dns_czechia.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dnsapi/dns_czechia.sh b/dnsapi/dns_czechia.sh index 080282e3..ab97a60a 100644 --- a/dnsapi/dns_czechia.sh +++ b/dnsapi/dns_czechia.sh @@ -93,7 +93,7 @@ _czechia_load_conf() { # normalize if [ -n "$CZ_Zone" ]; then - CZ_Zone="$(_lower_case "$CZ_Zone")" + CZ_Zone="$(printf "%s" "$CZ_Zone" | _lower_case)" CZ_Zone="$(printf "%s" "$CZ_Zone" | sed 's/\.$//')" fi @@ -121,7 +121,7 @@ _czechia_norm_zonelist() { in="$1" [ -z "$in" ] && return 0 - in="$(_lower_case "$in")" + in="$(printf "%s" "$in" | _lower_case)" printf "%s" "$in" | tr ' ' ',' | @@ -132,7 +132,7 @@ _czechia_norm_zonelist() { _czechia_pick_zone() { fulldomain="$1" - fd="$(_lower_case "$fulldomain")" + fd="$(printf "%s" "$fulldomain" | _lower_case)" fd="$(printf "%s" "$fd" | sed 's/\.$//')" best="" @@ -181,10 +181,10 @@ _czechia_rel_host() { fulldomain="$1" zone="$2" - fd="$(_lower_case "$fulldomain")" + fd="$(printf "%s" "$fulldomain" | _lower_case)" fd="$(printf "%s" "$fd" | sed 's/\.$//')" - z="$(_lower_case "$zone")" + z="$(printf "%s" "$zone" | _lower_case)" z="$(printf "%s" "$z" | sed 's/\.$//')" if [ "$fd" = "$z" ]; then