From 7939b419f7f40f897ec5b0b4db10974d278e46c2 Mon Sep 17 00:00:00 2001 From: Alistair Nixon Date: Mon, 9 May 2016 11:18:38 +0100 Subject: [PATCH] fix issue where keyauthorization starts with a - character (#184) --- acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index eb3b38f..e1662b0 100755 --- a/acme.sh +++ b/acme.sh @@ -1360,11 +1360,11 @@ issue() { _debug wellknown_path "$wellknown_path" - token="$(printf "$keyauthorization" | cut -d '.' -f 1)" + token="$(printf "%s" "$keyauthorization" | cut -d '.' -f 1)" _debug "writing token:$token to $wellknown_path/$token" mkdir -p "$wellknown_path" - printf "$keyauthorization" > "$wellknown_path/$token" + printf "%s" "$keyauthorization" > "$wellknown_path/$token" if [ ! "$usingApache" ] ; then webroot_owner=$(_stat $_currentRoot) _debug "Changing owner/group of .well-known to $webroot_owner"