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

This commit is contained in:
Alistair Nixon authored and neil committed 2016-05-09 18:18:38 +08:00
1 parent 61579ec329
commit 7939b419f7
1 file changed
+2 -2
+2 -2
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.