mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 13:31:18 +00:00
dns_cpanel: quote inner expansion in suffix strip (SC2295)
This commit is contained in:
1 parent
22a5ae3ceb
commit
76811857a0
1 file changed
+1
-1
@@ -38,7 +38,7 @@ dns_cpanel_add() {
|
||||
fi
|
||||
# adding entry
|
||||
_info "Adding the entry"
|
||||
stripped_fulldomain="${fulldomain%.$_domain}"
|
||||
stripped_fulldomain="${fulldomain%."$_domain"}"
|
||||
_debug "Adding $stripped_fulldomain to $_domain zone"
|
||||
_myget "json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=add_zone_record&domain=$_domain&name=$stripped_fulldomain&type=TXT&txtdata=$txtvalue&ttl=1"
|
||||
if _successful_update; then return 0; fi
|
||||
|
||||