Commit 8454ffa3 authored by Matthew Robinson's avatar Matthew Robinson
Browse files

Fix issue with similar domain names causing an error in selecting the proper...

Fix issue with similar domain names causing an error in selecting the proper root domain to add challenge records in
parent d93a5b2d
......@@ -157,7 +157,7 @@ _get_root() {
# iterate over names (a.b.c.d -> b.c.d -> c.d -> d)
while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
h=$(printf "%s" "$domain" | cut -d . -f $i-100 | sed 's/\./\\./g')
_debug "Checking domain: $h"
if [ -z "$h" ]; then
_error "invalid domain"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment