Commit 7939b419 authored by Alistair Nixon's avatar Alistair Nixon Committed by neil
Browse files

fix issue where keyauthorization starts with a - character (#184)

parent 61579ec3
...@@ -1360,11 +1360,11 @@ issue() { ...@@ -1360,11 +1360,11 @@ issue() {
_debug wellknown_path "$wellknown_path" _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" _debug "writing token:$token to $wellknown_path/$token"
mkdir -p "$wellknown_path" mkdir -p "$wellknown_path"
printf "$keyauthorization" > "$wellknown_path/$token" printf "%s" "$keyauthorization" > "$wellknown_path/$token"
if [ ! "$usingApache" ] ; then if [ ! "$usingApache" ] ; then
webroot_owner=$(_stat $_currentRoot) webroot_owner=$(_stat $_currentRoot)
_debug "Changing owner/group of .well-known to $webroot_owner" _debug "Changing owner/group of .well-known to $webroot_owner"
......
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