Fix authorization lookup problem with similar domain names.

E.g. api.example.com previously also matched api-example.com
This commit is contained in:
Karsten Sperling 2018-05-28 16:15:13 +12:00
parent d9db90752e
commit 2ede03b8f2

View File

@ -3692,7 +3692,7 @@ $_authorizations_map"
fi
if [ "$ACME_VERSION" = "2" ]; then
response="$(echo "$_authorizations_map" | grep "^$d," | sed "s/$d,//")"
response="$(echo "$_authorizations_map" | grep "^${d//./\.}," | sed "s/$d,//")"
_debug2 "response" "$response"
if [ -z "$response" ]; then
_err "get to authz error."