Skip to content

Commit

Permalink
2024-12-24 - Ensure that $PDNS_Url has no trailing slash ('/').
Browse files Browse the repository at this point in the history
  • Loading branch information
diffway committed Dec 24, 2024
1 parent f981c78 commit b6b1b16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dnsapi/dns_pdns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dns_pdns_add() {
PDNS_Ttl="$DEFAULT_PDNS_TTL"
fi

# ensure PDNS_Url has no trailing slash ('/')
PDNS_Url="${PDNS_Url%/}"

#save the api addr and key to the account conf file.
_saveaccountconf_mutable PDNS_Url "$PDNS_Url"
_saveaccountconf_mutable PDNS_ServerId "$PDNS_ServerId"
Expand Down

0 comments on commit b6b1b16

Please sign in to comment.