dns_cpanel: quote inner expansion in suffix strip (SC2295)

This commit is contained in:
neil committed 2026-07-12 09:35:22 +08:00
1 parent 22a5ae3ceb
commit 76811857a0
1 file changed
+1 -1
+1 -1
View File
@@ -38,7 +38,7 @@ dns_cpanel_add() {
fi fi
# adding entry # adding entry
_info "Adding the entry" _info "Adding the entry"
stripped_fulldomain="${fulldomain%.$_domain}" stripped_fulldomain="${fulldomain%."$_domain"}"
_debug "Adding $stripped_fulldomain to $_domain zone" _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" _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 if _successful_update; then return 0; fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.