mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-18 15:13:29 +08:00
_get_root matched the candidate zone with _contains (grep), which treats the domain as a regex. For "-d g.<zone>" the candidate "g.<zone>" matched "<string>...<zone>" because '.' matches the '>' after "string" and the 'g' comes from the "<string>" tag, so "g.<zone>" was wrongly taken as the root zone (sub=_acme-challenge instead of _acme-challenge.g). Anchor the match to <string>$h</string> and escape dots so the zone is compared literally. Fixes #5129
11 KiB
Executable File
11 KiB
Executable File